8,735
社区成员
发帖
与我相关
我的任务
分享
protected override void MouseLeftButtonDown (MouseButtonEventArgs e)
{
this.SelectionStart = this.SelectionStart - 1;
}
and
protected override void MouseRightButtonDown (MouseButtonEventArgs e)
{
this.SelectionStart = this.SelectionStart + 1;
}
int num = VisualTreeHelper.GetChildrenCount(App.Current.MainWindow);
for(int i=0;i<num;i++)
{
var child = VisualTreeHelper.GetChild(App.Current.MainWindow, i);
TextBox tb = child as TextBox;
if (tb != null)
{
MessageBox.Show(tb.Text);
}
}