EditingContext 类

更新:2007 年 11 月

包含有关设计器的上下文状态。

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

语法

声明
Public Class EditingContext _
    Implements IDisposable
用法
Dim instance As EditingContext
public class EditingContext : IDisposable
public ref class EditingContext : IDisposable
public class EditingContext implements IDisposable

备注

EditingContext 类包含永久状态,例如正在设计器中运行的服务的列表。它还包括由上下文项组成的瞬时状态。瞬时上下文项状态的示例包括一组当前选定的对象以及用于操作设计图面上的对象的编辑工具。编辑上下文被设计为一个具体的类以便于使用。它有一个可用于替换其实现的受保护 API。

继承层次结构

System.Object
  Microsoft.Windows.Design.EditingContext

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

EditingContext 成员

Microsoft.Windows.Design 命名空间

ServiceManager

ContextItemManager

ContextItem

FeatureManager

其他资源

编辑上下文体系结构

了解 WPF 设计器扩展性