DataGrid.OnContextMenuOpening(ContextMenuEventArgs) 方法

定义

如果单元格上下文菜单已打开,则选择该单元格。

protected:
 override void OnContextMenuOpening(System::Windows::Controls::ContextMenuEventArgs ^ e);
protected override void OnContextMenuOpening (System.Windows.Controls.ContextMenuEventArgs e);
override this.OnContextMenuOpening : System.Windows.Controls.ContextMenuEventArgs -> unit
Protected Overrides Sub OnContextMenuOpening (e As ContextMenuEventArgs)

参数

e
ContextMenuEventArgs

其上下文菜单已打开的项。

注解

在未选择的单元格或行上打开上下文菜单时,将调用此方法。

适用于