Exemple #1
0
 private void UserControl_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         //textboxe by default set bindings on lost focus
         //so we have a ghost control on each tab and will wiggle focus to it and back to commit data on saves...
         UIElement elem = Keyboard.FocusedElement as UIElement;
         Keyboard.Focus(ghost);
         Keyboard.Focus(elem);
         _veiwModel.AuthenticateCommand();
     }
 }