下面的示例演示了“备注”中讨论的依赖项属性元数据重写用法。
The following example illustrates the dependency property metadata override usage discussed in Remarks.
使用指定的属性名称、属性类型、所有者类型和属性元数据注册附加属性。
Registers an attached property with the specified property name, property type, owner type, and property metadata.
使用指定的属性名称、属性类型、所有者类型和属性元数据注册依赖项属性。
Registers a dependency property with the specified property name, property type, owner type, and property metadata.
应用推荐