AllowMouseEnter() public method

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