Partager via


ContextMenuService.RemoveContextMenuClosingHandler Méthode

Définition

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

public:
 static void RemoveContextMenuClosingHandler(System::Windows::DependencyObject ^ element, System::Windows::Controls::ContextMenuEventHandler ^ handler);
public static void RemoveContextMenuClosingHandler (System.Windows.DependencyObject element, System.Windows.Controls.ContextMenuEventHandler handler);
static member RemoveContextMenuClosingHandler : System.Windows.DependencyObject * System.Windows.Controls.ContextMenuEventHandler -> unit
Public Shared Sub RemoveContextMenuClosingHandler (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 à