DependencyProperty.IsAttached 属性

定义

获取一个属性,该属性指示此 DependencyProperty 属性是否与 DependencyObject 注册关联。

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

属性值

true 如果附加到 ; DependencyObject否则为 false

注解

返回的值指示是否使用DependencyProperty该方法注册了此值Register

适用于