MenuActionEventArgs.Context 属性

获取当前活动的编辑上下文。

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

语法

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

属性值

类型:Microsoft.Windows.Design.EditingContext
一个表示活动编辑批处理的 EditingContext

.NET Framework 安全性

请参见

参考

MenuActionEventArgs 类

Microsoft.Windows.Design.Interaction 命名空间

PrimarySelectionContextMenuProvider

MenuAction

MenuGroup

ModelItem

其他资源

演练:创建菜单提供程序