10 references to ContextMenuOpeningEvent
PresentationFramework (10)
System\Windows\Controls\ComboBox.cs (1)
66
EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.
ContextMenuOpeningEvent
, new ContextMenuEventHandler(OnContextMenuOpen), true);
System\Windows\Controls\ContextMenuService.cs (6)
352
UIElement.AddHandler(element,
ContextMenuOpeningEvent
, handler);
362
UIElement.RemoveHandler(element,
ContextMenuOpeningEvent
, handler);
396
EventManager.RegisterClassHandler(typeof(UIElement),
ContextMenuOpeningEvent
, new ContextMenuEventHandler(OnContextMenuOpening));
397
EventManager.RegisterClassHandler(typeof(ContentElement),
ContextMenuOpeningEvent
, new ContextMenuEventHandler(OnContextMenuOpening));
398
EventManager.RegisterClassHandler(typeof(UIElement3D),
ContextMenuOpeningEvent
, new ContextMenuEventHandler(OnContextMenuOpening));
458
RoutedEvent =(opening ? ContextMenuService.
ContextMenuOpeningEvent
: ContextMenuService.ContextMenuClosingEvent);
System\Windows\Controls\StickyNote.cs (1)
115
EventManager.RegisterClassHandler(owner, ContextMenuService.
ContextMenuOpeningEvent
, new ContextMenuEventHandler(_OnContextMenuOpening));
System\Windows\FrameworkContentElement.cs (1)
1949
public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.
ContextMenuOpeningEvent
.AddOwner(typeof(FrameworkContentElement));
System\Windows\FrameworkElement.cs (1)
6006
public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.
ContextMenuOpeningEvent
.AddOwner(_typeofThis);