ContextMenuService.RemoveContextMenuOpeningHandler Méthode

Définition

Supprime un gestionnaire pour l'événement attaché ContextMenuOpening.

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

Paramètres

element
DependencyObject

UIElement ou ContentElement qui écoute cet événement.

handler
ContextMenuEventHandler

Gestionnaire d’événements à supprimer.

S’applique à