AllowGotFocus() public method

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