UIElement.IsMouseCaptureWithin Property


获取一个值,该值确定鼠标捕获是由此元素还是其可视化树中的子元素持有。Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. 这是依赖项属性。This is a dependency property.

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

Property Value


如果此元素或包含的元素具有鼠标捕获,则为 true;否则为 falsetrue if this element or a contained element has mouse capture; otherwise, false.


依赖项属性信息Dependency Property Information

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

Applies to

See also