EditingContext.CreateContextItemManager 方法

更新:2007 年 11 月

创建一个要从 Items 属性返回的上下文项管理器的实例。

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

语法

声明
Protected Overridable Function CreateContextItemManager As ContextItemManager
用法
Dim returnValue As ContextItemManager

returnValue = Me.CreateContextItemManager()
protected virtual ContextItemManager CreateContextItemManager()
protected:
virtual ContextItemManager^ CreateContextItemManager()
protected function CreateContextItemManager() : ContextItemManager

返回值

类型:Microsoft.Windows.Design.ContextItemManager

ContextItemManager 类的一个实现。

备注

默认实现创建一个 ContextItemManager,后者通过 SubscribeContextCallback<ContextItemType> 的声明支持设计编辑器管理器的延迟激活。

权限

另请参见

参考

EditingContext 类

EditingContext 成员

Microsoft.Windows.Design 命名空间

ServiceManager

ContextItemManager

ContextItem

FeatureManager

其他资源

编辑上下文体系结构

了解 WPF 设计器扩展性