Event MouseEnter
Raised when the mouse moves over the View's Frame. MouseLeave will be raised when the mouse is no longer over the Frame. If another View occludes this View, the that View will also receive MouseEnter/Leave events.
public event EventHandler<CancelEventArgs>? MouseEnter
Returns
- EventHandler<CancelEventArgs>
- Raised when the mouse moves over the View's . will be raised when the mouse is no longer over the . If another View occludes this View, the that View will also receive MouseEnter/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.
Adornments receive MouseEnter/Leave events when the mouse is over the Adornment's Thickness.
Set Cancel to true if the event was canceled, false if not. Cancelling the event prevents Views higher in the visible hierarchy from receiving Enter/Leave events.
See SetPressedHighlight(HighlightStyle) for more information.