39 references to ContextMenuService
PresentationFramework (39)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
67EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 68EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true);
src\Framework\System\Windows\Controls\ContextMenu.cs (12)
89ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 95return PopupControlService.CoerceProperty(d, value, ContextMenuService.HorizontalOffsetProperty); 113ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 119return PopupControlService.CoerceProperty(d, value, ContextMenuService.VerticalOffsetProperty); 181ContextMenuService.PlacementTargetProperty.AddOwner( 188return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementTargetProperty); 206ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 212return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementRectangleProperty); 229ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 235return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementProperty); 252ContextMenuService.HasDropShadowProperty.AddOwner( 266return PopupControlService.CoerceProperty(d, value, ContextMenuService.HasDropShadowProperty);
src\Framework\System\Windows\Controls\ContextMenuService.cs (13)
31typeof(ContextMenuService), // Owner 84typeof(ContextMenuService), // Owner 123typeof(ContextMenuService), // Owner 162typeof(ContextMenuService), // Owner 199typeof(ContextMenuService), // Owner 237typeof(ContextMenuService), // Owner 275typeof(ContextMenuService), // Owner 313typeof(ContextMenuService), // Owner 351typeof(ContextMenuService), // Owner 398typeof(ContextMenuService)); 427typeof(ContextMenuService)); 513RoutedEvent =(opening ? ContextMenuService.ContextMenuOpeningEvent : ContextMenuService.ContextMenuClosingEvent);
src\Framework\System\Windows\Controls\PopupControlService.cs (2)
880if ((o != null) && ContextMenuService.ContextMenuIsEnabled(o)) 883object menu = ContextMenuService.GetContextMenu(o);
src\Framework\System\Windows\Controls\StickyNote.cs (1)
125EventManager.RegisterClassHandler(owner, ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(_OnContextMenuOpening));
src\Framework\System\Windows\FrameworkContentElement.cs (3)
1868ContextMenuService.ContextMenuProperty.AddOwner(typeof(FrameworkContentElement), 1960public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(typeof(FrameworkContentElement)); 1991public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(typeof(FrameworkContentElement));
src\Framework\System\Windows\FrameworkElement.cs (3)
5919ContextMenuService.ContextMenuProperty.AddOwner( 6012public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(_typeofThis); 6043public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(_typeofThis);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
198case 106: t = () => typeof(ContextMenuService); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2973typeof(System.Windows.Controls.ContextMenuService),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5650case KnownElements.ContextMenuService: t = typeof(System.Windows.Controls.ContextMenuService); break;