53 references to ContextMenuService
PresentationFramework (39)
System\Windows\Controls\ComboBox.cs (2)
66EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 67EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true);
System\Windows\Controls\ContextMenu.cs (12)
85ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 91return PopupControlService.CoerceProperty(d, value, ContextMenuService.HorizontalOffsetProperty); 109ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 115return PopupControlService.CoerceProperty(d, value, ContextMenuService.VerticalOffsetProperty); 177ContextMenuService.PlacementTargetProperty.AddOwner( 184return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementTargetProperty); 202ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 208return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementRectangleProperty); 225ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 231return PopupControlService.CoerceProperty(d, value, ContextMenuService.PlacementProperty); 248ContextMenuService.HasDropShadowProperty.AddOwner( 262return PopupControlService.CoerceProperty(d, value, ContextMenuService.HasDropShadowProperty);
System\Windows\Controls\ContextMenuService.cs (13)
30typeof(ContextMenuService), // Owner 77typeof(ContextMenuService), // Owner 110typeof(ContextMenuService), // Owner 143typeof(ContextMenuService), // Owner 174typeof(ContextMenuService), // Owner 206typeof(ContextMenuService), // Owner 238typeof(ContextMenuService), // Owner 270typeof(ContextMenuService), // Owner 302typeof(ContextMenuService), // Owner 343typeof(ContextMenuService)); 372typeof(ContextMenuService)); 458RoutedEvent =(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)
115EventManager.RegisterClassHandler(owner, ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(_OnContextMenuOpening));
System\Windows\FrameworkContentElement.cs (3)
1857ContextMenuService.ContextMenuProperty.AddOwner(typeof(FrameworkContentElement), 1949public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(typeof(FrameworkContentElement)); 1980public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(typeof(FrameworkContentElement));
System\Windows\FrameworkElement.cs (3)
5913ContextMenuService.ContextMenuProperty.AddOwner( 6006public static readonly RoutedEvent ContextMenuOpeningEvent = ContextMenuService.ContextMenuOpeningEvent.AddOwner(_typeofThis); 6037public static readonly RoutedEvent ContextMenuClosingEvent = ContextMenuService.ContextMenuClosingEvent.AddOwner(_typeofThis);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
202case 106: t = () => typeof(ContextMenuService); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2977typeof(System.Windows.Controls.ContextMenuService),
System\Windows\Markup\KnownTypes.cs (1)
5660case KnownElements.ContextMenuService: t = typeof(System.Windows.Controls.ContextMenuService); break;
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
53ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
52ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
451path.PathParameters.Add(ContextMenuService.PlacementTargetProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
69ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
70ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1432DependencyProperty dp = ContextMenuService.ContextMenuProperty; 1454PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1488PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty); 1516PropertyHelper.TransferProperty(d, ContextMenuService.ContextMenuProperty);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
64ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
64ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
52ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
51ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
53ContextMenuService.ShowOnDisabledProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));