53 references to ContextMenuService
PresentationFramework (39)
System\Windows\Controls\ComboBox.cs (2)
56EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 57EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true);
System\Windows\Controls\ContextMenu.cs (12)
77ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 83return PopupControlService.CoerceProperty(d, value, ContextMenuService.HorizontalOffsetProperty); 101ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 107return PopupControlService.CoerceProperty(d, value, ContextMenuService.VerticalOffsetProperty); 169ContextMenuService.PlacementTargetProperty.AddOwner( 176return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementTargetProperty); 194ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 200return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementRectangleProperty); 217ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 223return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementProperty); 240ContextMenuService.HasDropShadowProperty.AddOwner( 254return PopupControlService.CoerceProperty(d, value, ContextMenuService.HasDropShadowProperty);
System\Windows\Controls\ContextMenuService.cs (13)
26typeof(ContextMenuService), // Owner 73typeof(ContextMenuService), // Owner 106typeof(ContextMenuService), // Owner 139typeof(ContextMenuService), // Owner 170typeof(ContextMenuService), // Owner 202typeof(ContextMenuService), // Owner 234typeof(ContextMenuService), // Owner 266typeof(ContextMenuService), // Owner 298typeof(ContextMenuService), // Owner 339typeof(ContextMenuService)); 368typeof(ContextMenuService)); 454RoutedEvent =(opening ? ContextMenuService.ContextMenuOpeningEvent : ContextMenuService.ContextMenuClosingEvent);
System\Windows\Controls\PopupControlService.cs (2)
1005if ((o != null) && ContextMenuService.ContextMenuIsEnabled(o)) 1008object menu = ContextMenuService.GetContextMenu(o);
System\Windows\Controls\StickyNote.cs (1)
88EventManager.RegisterClassHandler(owner, ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(_OnContextMenuOpening));
System\Windows\FrameworkContentElement.cs (3)
1840ContextMenuService.ContextMenuProperty.AddOwner(typeof(FrameworkContentElement), 1932public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(typeof(FrameworkContentElement)); 1963public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(typeof(FrameworkContentElement));
System\Windows\FrameworkElement.cs (3)
5907ContextMenuService.ContextMenuProperty.AddOwner( 6000public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(_typeofThis); 6031public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(_typeofThis);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
200case 106: t = () => typeof(ContextMenuService); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3139typeof(System.Windows.Controls.ContextMenuService),
System\Windows\Markup\KnownTypes.cs (1)
5654case KnownElements.ContextMenuService: t = typeof(System.Windows.Controls.ContextMenuService); break;
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
50ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
50ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
459path.PathParameters.Add(ContextMenuService.PlacementTargetProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
67ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
67ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1431DependencyProperty dp = ContextMenuService.ContextMenuProperty; 1453PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1487PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1515PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
61ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
61ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
50ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
49ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
51ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));