5 types derived from ContextMenu
Microsoft.VisualStudio.LanguageServices (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
42internal partial class InheritanceMarginContextMenu : System.Windows.Controls.ContextMenu, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
22internal partial class InheritanceMarginContextMenu : ContextMenu
PresentationFramework (2)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
145private class ViewerContextMenu : ContextMenu
System\windows\Documents\TextEditorContextMenu.cs (1)
421private class EditorContextMenu : ContextMenu
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
38public class RibbonContextMenu : ContextMenu
6 instantiations of ContextMenu
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
93ContextMenu = new ContextMenu();
PresentationFramework (5)
System\Windows\Controls\Primitives\ScrollBar.cs (3)
843ContextMenu verticalContextMenu = new ContextMenu(); 863ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 883ContextMenu horizontalContextMenuRightToLeft = new ContextMenu();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2962bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContextMenu(); };
System\Windows\Markup\KnownTypes.cs (1)
1186case KnownElements.ContextMenu: o = new System.Windows.Controls.ContextMenu(); break;
94 references to ContextMenu
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
176if (e.OriginalSource is ContextMenu { DataContext: InheritanceMarginGlyphViewModel inheritanceMarginViewModel }
PresentationFramework (93)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
74ContextMenu contextMenu;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
368ContextMenu cm = null; 371cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu; 440cm.ClearValue(ContextMenu.PlacementProperty); 441cm.ClearValue(ContextMenu.PlacementTargetProperty); 442cm.ClearValue(ContextMenu.HorizontalOffsetProperty); 443cm.ClearValue(ContextMenu.VerticalOffsetProperty);
System\Windows\Automation\Peers\ContextMenuAutomationPeer.cs (1)
27public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
System\Windows\Controls\ContextMenu.cs (29)
44EventManager.RegisterClassHandler(typeof(ContextMenu), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); 46DefaultStyleKeyProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(typeof(ContextMenu))); 47_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ContextMenu)); 49IsTabStopProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 50KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 51KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 52KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 55FocusVisualStyleProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata((object)null /* default value */)); 85ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 109ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 134typeof(ContextMenu), 153ContextMenu ctrl = (ContextMenu) d; 178typeof(ContextMenu), 202ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 225ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 249typeof(ContextMenu), 255ContextMenu cm = (ContextMenu)d; 280Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 299Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 318public static readonly RoutedEvent OpenedEvent = PopupControlService.ContextMenuOpenedEvent.AddOwner(typeof(ContextMenu)); 347public static readonly RoutedEvent ClosedEvent = PopupControlService.ContextMenuClosedEvent.AddOwner(typeof(ContextMenu)); 469MenuItem.InsideContextMenuProperty.AddOwner(typeof(ContextMenu), 562ContextMenu cm = (ContextMenu)arg; 586ContextMenu cm = (ContextMenu)arg;
System\Windows\Controls\ContextMenuService.cs (6)
29typeof(ContextMenu), // Type 31new FrameworkPropertyMetadata((ContextMenu)null, 40public static ContextMenu GetContextMenu(DependencyObject element) 44ContextMenu cm = (ContextMenu)element.GetValue(ContextMenuProperty); 65public static void SetContextMenu(DependencyObject element, ContextMenu value)
System\Windows\Controls\GridView.cs (3)
393typeof(ContextMenu), 400public ContextMenu ColumnHeaderContextMenu 402get { return (ContextMenu)GetValue(ColumnHeaderContextMenuProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
184public ContextMenu ColumnHeaderContextMenu 186get { return (ContextMenu)GetValue(ColumnHeaderContextMenuProperty); }
System\Windows\Controls\PopupControlService.cs (13)
1009ContextMenu cm = menu as ContextMenu; 1027cm.SetCurrentValueInternal(ContextMenu.IsOpenProperty, BooleanBoxes.TrueBox); 1044ContextMenu cm = source as ContextMenu; 1248if (o is ContextMenu) 1250o.CoerceValue(ContextMenu.HorizontalOffsetProperty); 1251o.CoerceValue(ContextMenu.VerticalOffsetProperty); 1252o.CoerceValue(ContextMenu.PlacementTargetProperty); 1253o.CoerceValue(ContextMenu.PlacementRectangleProperty); 1254o.CoerceValue(ContextMenu.PlacementProperty); 1255o.CoerceValue(ContextMenu.HasDropShadowProperty); 1281else if (dp == ToolTip.PlacementTargetProperty || dp == ContextMenu.PlacementTargetProperty)
System\Windows\Controls\Primitives\ScrollBar.cs (8)
839private static ContextMenu VerticalContextMenu 843ContextMenu verticalContextMenu = new ContextMenu(); 859private static ContextMenu HorizontalContextMenuLTR 863ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 879private static ContextMenu HorizontalContextMenuRTL 883ContextMenu horizontalContextMenuRightToLeft = new ContextMenu(); 906binding.Path = new PropertyPath(ContextMenu.PlacementTargetProperty); 908binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Controls\StickyNote.cs (2)
566ContextMenu menu = Keyboard.FocusedElement as ContextMenu;
System\windows\Documents\TextEditorContextMenu.cs (6)
59ContextMenu contextMenu = null; 77contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 90contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 242UIElement placementTarget = ((ContextMenu)sender).PlacementTarget; 252((ContextMenu)sender).Closed -= new RoutedEventHandler(OnContextMenuClosed); 427SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (3)
1858new FrameworkPropertyMetadata((ContextMenu) null)); 1863public ContextMenu ContextMenu 1867return (ContextMenu)GetValue(ContextMenuProperty);
System\Windows\FrameworkElement.cs (3)
5915new FrameworkPropertyMetadata((ContextMenu) null)); 5920public ContextMenu ContextMenu 5924return GetValue(ContextMenuProperty) as ContextMenu;
System\Windows\Generated\FrameworkContentElement.cs (2)
630ContextMenu contextMenu = 635RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Generated\FrameworkElement.cs (2)
652ContextMenu contextMenu = 657RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
201case 105: t = () => typeof(ContextMenu); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4336Type type = typeof(System.Windows.Controls.ContextMenu); 4338this.GetXamlType(typeof(System.Windows.Controls.ContextMenu)), // DeclaringType 4344bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ContextMenu)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2960typeof(System.Windows.Controls.ContextMenu),
System\Windows\Markup\KnownTypes.cs (1)
5659case KnownElements.ContextMenu: t = typeof(System.Windows.Controls.ContextMenu); break;