Condividi tramite


ContextMenuService.SetContextMenu(DependencyObject, ContextMenu) Metodo

Definizione

Imposta il valore della proprietà ContextMenu dell'oggetto specificato.

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)

Parametri

element
DependencyObject

Oggetto su cui impostare la proprietà.

value
ContextMenu

Valore da impostare.

Si applica a