Пример #1
0
 private void CommandTextBox_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (IsVisible && VisualHelper.GetAutoFocusMode(this) == AutoFocusMode.OnVisible)
     {
         AutoFocus();
     }
 }
Пример #2
0
 private void CommandTextBox_Loaded(object sender, RoutedEventArgs e)
 {
     if (VisualHelper.GetAutoFocusMode(this) == AutoFocusMode.OnLoad)
     {
         AutoFocus();
     }
 }