SetValue(SelectionProperty, new TextRange(this._Controller.SelectionStart, this._Controller.SelectionLength));
SetValue(CaretPostionPropertyKey, this.View.CaretPostion);
this.nowCaretMove = false;
- this.View.SelectGrippers[0].MoveByIndex(this.View, this.Controller.SelectionStart);
- this.View.SelectGrippers[1].MoveByIndex(this.View, this.Controller.SelectionStart + this.Controller.SelectionLength);
+ this.View.SelectGrippers.BottomLeft.MoveByIndex(this.View, this.Controller.SelectionStart);
+ this.View.SelectGrippers.BottomRight.MoveByIndex(this.View, this.Controller.SelectionStart + this.Controller.SelectionLength);
if (this.textStore.IsLocked() == false)
this.textStore.NotifySelectionChanged();
}
TextPoint tp = this.View.GetTextPointFromPostion(p);
if (this._Controller.IsReverseSelect())
{
- if (Object.ReferenceEquals(hittedGripper,this.View.SelectGrippers[1]))
+ if (Object.ReferenceEquals(hittedGripper,this.View.SelectGrippers.BottomRight))
this._Controller.MoveSelectBefore(tp);
else
this._Controller.MoveCaretAndSelect(tp);
}
else
{
- if (Object.ReferenceEquals(hittedGripper, this.View.SelectGrippers[0]))
+ if (Object.ReferenceEquals(hittedGripper, this.View.SelectGrippers.BottomLeft))
this._Controller.MoveSelectBefore(tp);
else
this._Controller.MoveCaretAndSelect(tp);
}
if (this.peer != null)
this.peer.OnNotifyCaretChanged();
- this.View.SelectGrippers[0].Enabled = this._Controller.SelectionLength != 0;
+ this.View.SelectGrippers.BottomLeft.Enabled = this._Controller.SelectionLength != 0;
this.Refresh();
this._Controller.Scroll(ScrollDirection.Up, scrollCount, false, false);
else
this._Controller.Scroll(ScrollDirection.Down, scrollCount, false, false);
- this.View.SelectGrippers[0].Enabled = false;
- this.View.SelectGrippers[1].Enabled = false;
+ this.View.SelectGrippers.BottomLeft.Enabled = false;
+ this.View.SelectGrippers.BottomRight.Enabled = false;
this.Refresh();
return;
}
this._Controller.Scroll(ScrollDirection.Left, deltax, false, false);
else
this._Controller.Scroll(ScrollDirection.Right, deltax, false, false);
- this.View.SelectGrippers[0].Enabled = false;
- this.View.SelectGrippers[1].Enabled = false;
+ this.View.SelectGrippers.BottomLeft.Enabled = false;
+ this.View.SelectGrippers.BottomRight.Enabled = false;
this.Refresh();
}
}
void gestureRecongnizer_Tapped(GestureRecognizer sender, TappedEventArgs e)
{
bool touched = e.PointerDeviceType == PointerDeviceType.Touch;
- this.View.SelectGrippers[0].Enabled = false;
- this.View.SelectGrippers[1].Enabled = touched;
+ this.View.SelectGrippers.BottomLeft.Enabled = false;
+ this.View.SelectGrippers.BottomRight.Enabled = touched;
this.JumpCaret(e.Position);
System.Diagnostics.Debug.WriteLine(e.TapCount);
if (e.TapCount == 2)
{
- this.View.SelectGrippers[0].Enabled = touched;
+ this.View.SelectGrippers.BottomLeft.Enabled = touched;
//タッチスクリーンでダブルタップした場合、アンカーインデックスを単語の先頭にしないとバグる
this.Controller.SelectWord(this.Controller.SelectionStart, touched);
}
else
toX = -this.horizontalScrollBar.Value;
this._Controller.Scroll(toX, this.View.Src.Row, false, false);
- this.View.SelectGrippers[0].Enabled = false;
- this.View.SelectGrippers[1].Enabled = false;
+ this.View.SelectGrippers.BottomLeft.Enabled = false;
+ this.View.SelectGrippers.BottomRight.Enabled = false;
this.Refresh();
}
if (newRow >= this.View.LayoutLines.Count)
return;
this._Controller.Scroll(this.View.Src.X, newRow, false, false);
- this.View.SelectGrippers[0].Enabled = false;
- this.View.SelectGrippers[1].Enabled = false;
+ this.View.SelectGrippers.BottomLeft.Enabled = false;
+ this.View.SelectGrippers.BottomRight.Enabled = false;
this.Refresh();
}