ContextMenuService.GetContextMenu(DependencyObject) Yöntem

Tanım

Belirtilen nesnenin ContextMenu özelliğinin değerini alır.

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

Parametreler

element
DependencyObject

Özelliğiyle ilgili sorguya nesnesi ContextMenu .

Döndürülenler

ContextMenu

özelliğinin ContextMenu değeri.

Öznitelikler

Şunlara uygulanır