NameScope.NameScope 附加属性

定义

获取或设置动态附加的 NameScope 实例。Gets or sets dynamically attached NameScope instances.

see GetNameScope, and SetNameScope
see GetNameScope, and SetNameScope
see GetNameScope, and SetNameScope

注解

此附加属性需要 XAML 中的附加属性用法,或在代码中使用 GetNameScopeSetNameScope 访问器。This attached property requires attached property usage in XAML, or use of the GetNameScope and SetNameScope accessors in code. 在 XAML 中设置名称范围并不常见。Setting the namescope in XAML is not common. 附加属性的用法主要是为了便于将 XAML 名称范围附加到不共享 XAML 名称范围实现的继承的对象。The attached property usage is primarily to facilitate attaching XAML namescopes to objects that do not share inheritance for XAML namescope implementations. DependencyObject 和派生类在本机支持此继承。DependencyObject and derived classes support this inheritance natively.

依赖项属性信息Dependency Property Information

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

适用于

另请参阅