Tool.Context 属性

获取工具中代码的编辑的上下文。

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

语法

声明
Protected ReadOnly Property Context As EditingContext
    Get
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
    EditingContext^ get ();
}
member Context : EditingContext
function get Context () : EditingContext

属性值

类型:Microsoft.Windows.Design.EditingContext
工具中代码的 EditingContext

备注

仅当工具处于活动状态时,Context 属性才可用。 如果工具不处于活动状态,该属性将引发 InvalidOperationException

.NET Framework 安全性

请参见

参考

Tool 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

工具体系结构

WPF 设计器扩展性体系结构