AllowMouseLeave() public method

Check if the control's MouseLeave event should be handled.
public AllowMouseLeave ( MouseEventArgs e ) : bool
e MouseEventArgs Event arguments.
return bool
 /// <summary>
 /// Provides handling for the MouseLeave event.
 /// </summary>
 /// <param name="e">The data for the event.</param>
 protected override void OnMouseLeave(MouseEventArgs e)
 {
     if (_interaction.AllowMouseLeave(e))
     {
         _interaction.OnMouseLeaveBase();
         base.OnMouseLeave(e);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This method is invoked when the mouse leaves the rating item.
 /// </summary>
 /// <param name="e">Information about the event.</param>
 protected override void OnMouseLeave(MouseEventArgs e)
 {
     if (_interactionHelper.AllowMouseLeave(e))
     {
         _interactionHelper.UpdateVisualStateBase(true);
     }
     base.OnMouseLeave(e);
 }