UIElement.IsStylusOver 属性

定义

获取一个值,该值指示触笔指针是否位于此元素(包括可视化子元素)的上方。Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). 这是依赖项属性。This is a dependency property.

public:
 property bool IsStylusOver { bool get(); };
public bool IsStylusOver { get; }
member this.IsStylusOver : bool
Public ReadOnly Property IsStylusOver As Boolean

属性值

如果触笔光标位于元素或其子元素上方,则为 true;否则为 falsetrue if stylus cursor is over the element or its child elements; otherwise, false. 默认值为 falseThe default is false.

实现

注解

如果此元素具有触笔捕获,此属性将继续返回 true,直到触笔捕获丢失且指针超出其边界。If this element has stylus capture, this property will continue to return true until stylus capture is lost and the pointer is out of its bounds.

触摸、鼠标和触笔输入在特定关系中存在。Touch, mouse, and stylus input exist in a particular relationship. 有关详细信息,请参阅输入概述For more information, see Input Overview.

依赖项属性信息Dependency Property Information

标识符字段Identifier field IsStylusOverProperty
元数据属性设置为 trueMetadata properties set to true NoneNone

适用于