Method OnMouseEnter
OnMouseEnter(CancelEventArgs)
Called when the mouse moves over the View's Frame and no other non-Subview occludes it. MouseLeave will be raised when the mouse is no longer over the Frame.
protected virtual bool OnMouseEnter(CancelEventArgs eventArgs)
Parameters
eventArgs
CancelEventArgs
Returns
- bool
true if the event was canceled, false if not. Cancelling the event prevents Views higher in the visible hierarchy from receiving Enter/Leave events.
Remarks
A view must be visible to receive Enter events (Leave events are always received).
If the event is cancelled, the mouse event will not be propagated to other views and MouseEnter will not be raised.
Adornments receive MouseEnter/Leave events when the mouse is over the Adornment's Thickness.
See SetPressedHighlight(HighlightStyle) for more information.