53 references to ContextMenuService
PresentationFramework (39)
System\Windows\Controls\ComboBox.cs (2)
55EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 56EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true);
System\Windows\Controls\ContextMenu.cs (12)
76ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 82return PopupControlService.CoerceProperty(d, value, ContextMenuService.HorizontalOffsetProperty); 100ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 106return PopupControlService.CoerceProperty(d, value, ContextMenuService.VerticalOffsetProperty); 168ContextMenuService.PlacementTargetProperty.AddOwner( 175return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementTargetProperty); 193ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 199return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementRectangleProperty); 216ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 222return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementProperty); 239ContextMenuService.HasDropShadowProperty.AddOwner( 253return PopupControlService.CoerceProperty(d, value, ContextMenuService.HasDropShadowProperty);
System\Windows\Controls\ContextMenuService.cs (13)
25typeof(ContextMenuService), // Owner 72typeof(ContextMenuService), // Owner 105typeof(ContextMenuService), // Owner 138typeof(ContextMenuService), // Owner 169typeof(ContextMenuService), // Owner 201typeof(ContextMenuService), // Owner 233typeof(ContextMenuService), // Owner 265typeof(ContextMenuService), // Owner 297typeof(ContextMenuService), // Owner 338typeof(ContextMenuService)); 367typeof(ContextMenuService)); 453RoutedEvent =(opening ? ContextMenuService.ContextMenuOpeningEvent : ContextMenuService.ContextMenuClosingEvent);
System\Windows\Controls\PopupControlService.cs (2)
1001if ((o != null) && ContextMenuService.ContextMenuIsEnabled(o)) 1004object menu = ContextMenuService.GetContextMenu(o);
System\Windows\Controls\StickyNote.cs (1)
87EventManager.RegisterClassHandler(owner, ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(_OnContextMenuOpening));
System\Windows\FrameworkContentElement.cs (3)
1836ContextMenuService.ContextMenuProperty.AddOwner(typeof(FrameworkContentElement), 1928public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(typeof(FrameworkContentElement)); 1959public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(typeof(FrameworkContentElement));
System\Windows\FrameworkElement.cs (3)
5897ContextMenuService.ContextMenuProperty.AddOwner( 5990public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(_typeofThis); 6021public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(_typeofThis);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
199case 106: t = () => typeof(ContextMenuService); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3138typeof(System.Windows.Controls.ContextMenuService),
System\Windows\Markup\KnownTypes.cs (1)
5653case KnownElements.ContextMenuService: t = typeof(System.Windows.Controls.ContextMenuService); break;
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
49ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
49ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
458path.PathParameters.Add(ContextMenuService.PlacementTargetProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
66ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
66ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1406DependencyProperty dp = ContextMenuService.ContextMenuProperty; 1428PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1462PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1490PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
60ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
60ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
49ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
48ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
50ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));