IsMouseOver Property
Collapse the table of content
Expand the table of content

ButtonBase.IsMouseOver Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value indicating whether the finger is located over this button control.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)

public bool IsMouseOver { get; internal set; }

Property Value

Type: System.Boolean
true to indicate the finger is over the button control, otherwise false. The default is false.

Dependency property identifier field: IsMouseOverProperty

IsMouseOver will not be set until OnMouseEnter has been called. Therefore, you should not rely on the accuracy of the IsMouseOver property in a handler for the MouseEnter event.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft