DependencyProperty 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
一种特殊的属性,可以定义或附加到 .DependencyObject 有三种类型的依赖属性:实例属性、元属性和附加属性。 此类不能被继承。
public ref class DependencyProperty sealed : System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class DependencyProperty : System.Runtime.Serialization.ISerializable
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class DependencyProperty : System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type DependencyProperty = class
interface ISerializable
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type DependencyProperty = class
interface ISerializable
Public NotInheritable Class DependencyProperty
Implements ISerializable
- 继承
-
DependencyProperty
- 属性
- 实现
注解
注释
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
依赖属性支持三种用例。 首先,如果使用依赖属性实现活动的实例属性,则可以为该属性分配一个 ActivityBind 而不是实际值。 其次,使用依赖属性(即,在运行时无法更改值)的活动属性 Metadata 应使用指定选项来实现。 第三,依赖属性支持附加属性,这些属性是动态应用于依赖对象的属性。
属性
| 名称 | 说明 |
|---|---|
| DefaultMetadata |
已过时.
获取表示 PropertyMetadata 此 DependencyProperty数据的用户定义的数据。 |
| IsAttached |
已过时.
获取一个属性,该属性指示此 DependencyProperty 属性是否与 DependencyObject 注册关联。 |
| IsEvent |
已过时.
获取指示是否为事件DependencyProperty的属性Delegate。 |
| Name |
已过时.
|
| OwnerType |
已过时.
|
| PropertyType |
已过时.
Type获取存储在 .. 中的值。DependencyProperty |
| ValidatorType |
已过时.
获取特定于 . Type . 的 DependencyProperty实现验证逻辑。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
已过时.
确定指定的对象是否等于当前对象。 (继承自 Object) |
| FromName(String, Type) |
已过时.
获取基于 DependencyProperty and Name的注册OwnerType项。 |
| FromType(Type) |
已过时.
IList创建属于特定DependencyProperty类型的类型Type。 |
| GetHashCode() |
已过时.
返回此实例的哈希代码。 |
| GetType() |
已过时.
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
已过时.
创建当前 Object的浅表副本。 (继承自 Object) |
| Register(String, Type, Type, PropertyMetadata) |
已过时.
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
| Register(String, Type, Type) |
已过时.
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
| RegisterAttached(String, Type, Type, PropertyMetadata, Type) |
已过时.
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
| RegisterAttached(String, Type, Type, PropertyMetadata) |
已过时.
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
| RegisterAttached(String, Type, Type) |
已过时.
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 此实例旨在声明在拥有类型对象以外的对象上使用的属性。 |
| ToString() |
已过时.
|
显式接口实现
| 名称 | 说明 |
|---|---|
| ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
已过时.
使用 SerializationInfo 序列化目标对象所需的数据填充数据。 |