Exemplo n.º 1
0
 private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
 {
     if (String.IsNullOrEmpty(SearchTermTextBox.Text))
     {
         SearchTermTextBox.Focus();
     }
 }
Exemplo n.º 2
0
 public new void Show()
 {
     moveApplicationToCenterOfCurrentScreen();
     (FindResource("ShowMe") as Storyboard).Begin(Border);
     ((Window)this).Show();
     Activate();
     SearchTermTextBox.Focus();
 }
Exemplo n.º 3
0
 private void UC_Loaded(object sender, RoutedEventArgs e)
 {
     if (SetFocusOnLoad)
     {
         SearchTermTextBox.Focus();
         SearchTermTextBox.SelectAll();
     }
 }
Exemplo n.º 4
0
 private void WindowLoaded(object sender, RoutedEventArgs e)
 {
     EnableBlur();
     SearchTermTextBox.Focus();
 }
Exemplo n.º 5
0
 private void FindCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     SearchTermTextBox.Focus();
 }