Share via


ContextMenuService.GetContextMenu(DependencyObject) Méthode

Définition

Obtient la valeur de la propriété ContextMenu de l'objet spécifié.

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

Paramètres

element
DependencyObject

Objet à interroger concernant la propriété ContextMenu.

Retours

ContextMenu

Valeur de la propriété ContextMenu.

Attributs

S’applique à