System.Windows.Controls.InteractionHelper.OnLostFocusBase C# (CSharp) Method

OnLostFocusBase() public method

Base implementation of the virtual LostFocus event handler.
public OnLostFocusBase ( ) : void
return void
        public void OnLostFocusBase()
        {
            IsPressed = false;
            UpdateVisualState(true);
        }
        #endregion LostFocus

Usage Example

 /// <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);
     }
 }