Bearbeiten

Freigeben über


ContextMenuService.GetContextMenu(DependencyObject) Method

Definition

Gets the value of the ContextMenu property of the specified object.

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

Parameters

element
DependencyObject

Object to query concerning the ContextMenu property.

Returns

Value of the ContextMenu property.

Attributes

Applies to