Compartilhar via


ContextMenuService.SetContextMenu(DependencyObject, ContextMenu) Método

Definição

Define o valor da propriedade ContextMenu do objeto especificado.

public:
 static void SetContextMenu(System::Windows::DependencyObject ^ element, System::Windows::Controls::ContextMenu ^ value);
public static void SetContextMenu (System.Windows.DependencyObject element, System.Windows.Controls.ContextMenu value);
static member SetContextMenu : System.Windows.DependencyObject * System.Windows.Controls.ContextMenu -> unit
Public Shared Sub SetContextMenu (element As DependencyObject, value As ContextMenu)

Parâmetros

element
DependencyObject

O objeto no qual a propriedade deve ser definida.

value
ContextMenu

Valor a ser definido.

Aplica-se a