Compartilhar via


ContextMenuService.GetContextMenu(DependencyObject) Método

Definição

Obtém o valor da propriedade ContextMenu do objeto especificado.

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

Parâmetros

element
DependencyObject

Objeto a ser consultado referente à propriedade ContextMenu.

Retornos

Valor da propriedade ContextMenu.

Atributos

Aplica-se a