ContextMenuService.GetContextMenu(DependencyObject) Metoda

Definicja

Pobiera wartość ContextMenu właściwości określonego obiektu.

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

Parametry

element
DependencyObject

Obiekt zapytania dotyczącego ContextMenu właściwości.

Zwraca

ContextMenu Wartość właściwości.

Atrybuty

Dotyczy