Exemple #1
0
 private void EditingElement_LosingFocus(UIElement sender, LosingFocusEventArgs args)
 {
     if (args.NewFocusedElement is Popup)
     {
         args.Cancel = true;
         args.TryCancel();
         args.TrySetNewFocusedElement(args.OldFocusedElement);
     }
 }
Exemple #2
0
 bool ILosingFocusEventArgsResolver.TrySetNewFocusedElement(LosingFocusEventArgs e, DependencyObject element) => e.TrySetNewFocusedElement(element);