IInputElement.IsStylusOver Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets a value that indicates whether the stylus is located over this element (or over visual child elements that are inside its bounds).

C#
public bool IsStylusOver { get; }

Property Value

true if the stylus cursor is over the element or its child elements; otherwise, false.

Remarks

This interface is not intended for public implementation. For more information, see remarks for the IInputElement interface.

Some core classes that implement IInputElement, such as UIElement, also implement an event that tracks changes to this property. However, this interface does not include such an event as part of its contract.

Existing implementations in the Windows Presentation Foundation (WPF) core (see ContentElement.IsStylusOver and UIElement.IsStylusOver) establish this property as a dependency property.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also