EditingContext.CreateContextItemManager 方法
[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]
创建从 Items 属性返回的上下文项管理器的实例。
命名空间: Microsoft.Windows.Design
程序集: Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)
语法
声明
Protected Overridable Function CreateContextItemManager As ContextItemManager
protected virtual ContextItemManager CreateContextItemManager()
protected:
virtual ContextItemManager^ CreateContextItemManager()
abstract CreateContextItemManager : unit -> ContextItemManager
override CreateContextItemManager : unit -> ContextItemManager
protected function CreateContextItemManager() : ContextItemManager
返回值
类型:Microsoft.Windows.Design.ContextItemManager
ContextItemManager 类的实现。
备注
默认实现将创建一个 ContextItemManager,它支持通过 SubscribeContextCallback<TContextItemType> 的声明来延迟激活设计编辑器管理器。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。