ContextMenuAdapter.GetShowContextMenuCommand 方法
命名空间: Microsoft.TeamFoundation.Controls.WPF
程序集: Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)
语法
声明
Public Shared Function GetShowContextMenuCommand ( _
target As UIElement _
) As ICommand
public static ICommand GetShowContextMenuCommand(
UIElement target
)
参数
- target
类型:System.Windows.UIElement
返回值
类型:System.Windows.Input.ICommand
返回 ICommand。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。