ContextItem.ItemType 属性

在派生类中被重写时,获取此编辑上下文项的项类型。

命名空间:  Microsoft.Windows.Design
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
Public MustOverride ReadOnly Property ItemType As Type
    Get
public abstract Type ItemType { get; }
public:
virtual property Type^ ItemType {
    Type^ get () abstract;
}
abstract ItemType : Type
abstract function get ItemType () : Type

属性值

类型:System.Type
此编辑上下文项的 Type

备注

根据项类型,上下文项可以视为具有唯一性。 通过使用 ItemType 来标识某一类型的上下文项,可以将若干派生版本的上下文项纳入编辑上下文中的同一个键下。

.NET Framework 安全性

请参见

参考

ContextItem 类

Microsoft.Windows.Design 命名空间

ContextItemManager

ServiceManager

FeatureManager

其他资源

编辑上下文体系结构

了解 WPF 设计器扩展性