ContextMenuService.GetContextMenu(DependencyObject) メソッド

定義

指定したオブジェクトの ContextMenu プロパティの値を取得します。

public:
 static System::Windows::Controls::ContextMenu ^ GetContextMenu(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Controls.ContextMenu GetContextMenu (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetContextMenu : System.Windows.DependencyObject -> System.Windows.Controls.ContextMenu
Public Shared Function GetContextMenu (element As DependencyObject) As ContextMenu

パラメーター

element
DependencyObject

ContextMenu プロパティについて照会するオブジェクト。

戻り値

ContextMenu

ContextMenu プロパティの値。

属性

適用対象