AllowMouseEnter() public method

Check if the control's MouseEnter event should be handled.
public AllowMouseEnter ( MouseEventArgs e ) : bool
e MouseEventArgs Event arguments.
return bool
コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
ファイル: RatingItem.cs プロジェクト: watchick/WpfToolkit
 /// <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);
 }