ButtonBase.IsMouseOver Property

July 28, 2014

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:
© 2014 Microsoft