DependencyProperty.IsAttached 属性

定义

获取一个属性,该属性指示此 DependencyProperty 是否通过注册与 DependencyObject 关联。Gets the property that indicates whether this DependencyProperty is associated to a DependencyObject by registration.

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

属性值

Boolean

如果附加到 true,则为 DependencyObject;否则为 falsetrue if attached to a DependencyObject; otherwise, false.

注解

返回的值指示此 DependencyProperty 是否已使用 Register 方法进行注册。The value returned indicates whether this DependencyProperty has been registered by using the Register method.

适用于