AllowLostFocus() public method

Check if the control's LostFocus event should be handled.
public AllowLostFocus ( RoutedEventArgs e ) : bool
e System.Windows.RoutedEventArgs Event arguments.
return bool
 /// <summary>
 /// Provides handling for the LostFocus event.
 /// </summary>
 /// <param name="e">The data for the event.</param>
 protected override void OnLostFocus(RoutedEventArgs e)
 {
     if (_interaction.AllowLostFocus(e))
     {
         _interaction.OnLostFocusBase();
         base.OnLostFocus(e);
     }
 }