ContextMenuService.GetContextMenu(DependencyObject) Metod

Definition

Hämtar värdet för egenskapen för ContextMenu det angivna objektet.

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

Parametrar

element
DependencyObject

Objekt att fråga om egenskapen ContextMenu .

Returer

Egenskapens ContextMenu värde.

Attribut

Gäller för