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)
138private class ViewerContextMenu : ContextMenu
System\windows\Documents\TextEditorContextMenu.cs (1)
418private class EditorContextMenu : ContextMenu
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
35public 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)
828ContextMenu verticalContextMenu = new ContextMenu(); 848ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 868ContextMenu horizontalContextMenuRightToLeft = new ContextMenu();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3122DefaultConstructor = delegate () { return new System.Windows.Controls.ContextMenu(); },
System\Windows\Markup\KnownTypes.cs (1)
1179case 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)
65ContextMenu contextMenu;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
365ContextMenu cm = null; 368cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu; 437cm.ClearValue(ContextMenu.PlacementProperty); 438cm.ClearValue(ContextMenu.PlacementTargetProperty); 439cm.ClearValue(ContextMenu.HorizontalOffsetProperty); 440cm.ClearValue(ContextMenu.VerticalOffsetProperty);
System\Windows\Automation\Peers\ContextMenuAutomationPeer.cs (1)
12public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
System\Windows\Controls\ContextMenu.cs (29)
35EventManager.RegisterClassHandler(typeof(ContextMenu), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); 37DefaultStyleKeyProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(typeof(ContextMenu))); 38_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ContextMenu)); 40IsTabStopProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 41KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 42KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 43KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 46FocusVisualStyleProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata((object)null /* default value */)); 76ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 100ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 125typeof(ContextMenu), 144ContextMenu ctrl = (ContextMenu) d; 169typeof(ContextMenu), 193ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 216ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 240typeof(ContextMenu), 246ContextMenu cm = (ContextMenu)d; 271Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 290Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 309public static readonly RoutedEvent OpenedEvent = PopupControlService.ContextMenuOpenedEvent.AddOwner(typeof(ContextMenu)); 338public static readonly RoutedEvent ClosedEvent = PopupControlService.ContextMenuClosedEvent.AddOwner(typeof(ContextMenu)); 460MenuItem.InsideContextMenuProperty.AddOwner(typeof(ContextMenu), 554ContextMenu cm = (ContextMenu)arg; 578ContextMenu cm = (ContextMenu)arg;
System\Windows\Controls\ContextMenuService.cs (6)
24typeof(ContextMenu), // Type 26new FrameworkPropertyMetadata((ContextMenu)null, 35public static ContextMenu GetContextMenu(DependencyObject element) 39ContextMenu cm = (ContextMenu)element.GetValue(ContextMenuProperty); 60public static void SetContextMenu(DependencyObject element, ContextMenu value)
System\Windows\Controls\GridView.cs (3)
392typeof(ContextMenu), 399public ContextMenu ColumnHeaderContextMenu 401get { return (ContextMenu)GetValue(ColumnHeaderContextMenuProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
180public ContextMenu ColumnHeaderContextMenu 182get { return (ContextMenu)GetValue(ColumnHeaderContextMenuProperty); }
System\Windows\Controls\PopupControlService.cs (13)
1005ContextMenu cm = menu as ContextMenu; 1023cm.SetCurrentValueInternal(ContextMenu.IsOpenProperty, BooleanBoxes.TrueBox); 1040ContextMenu cm = source as ContextMenu; 1244if (o is ContextMenu) 1246o.CoerceValue(ContextMenu.HorizontalOffsetProperty); 1247o.CoerceValue(ContextMenu.VerticalOffsetProperty); 1248o.CoerceValue(ContextMenu.PlacementTargetProperty); 1249o.CoerceValue(ContextMenu.PlacementRectangleProperty); 1250o.CoerceValue(ContextMenu.PlacementProperty); 1251o.CoerceValue(ContextMenu.HasDropShadowProperty); 1277else if (dp == ToolTip.PlacementTargetProperty || dp == ContextMenu.PlacementTargetProperty)
System\Windows\Controls\Primitives\ScrollBar.cs (8)
824private static ContextMenu VerticalContextMenu 828ContextMenu verticalContextMenu = new ContextMenu(); 844private static ContextMenu HorizontalContextMenuLTR 848ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 864private static ContextMenu HorizontalContextMenuRTL 868ContextMenu horizontalContextMenuRightToLeft = new ContextMenu(); 894Path = new PropertyPath(ContextMenu.PlacementTargetProperty), 896RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1)
System\Windows\Controls\StickyNote.cs (2)
532ContextMenu menu = Keyboard.FocusedElement as ContextMenu;
System\windows\Documents\TextEditorContextMenu.cs (6)
56ContextMenu contextMenu = null; 74contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 87contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 239UIElement placementTarget = ((ContextMenu)sender).PlacementTarget; 249((ContextMenu)sender).Closed -= new RoutedEventHandler(OnContextMenuClosed); 424SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (3)
1837new FrameworkPropertyMetadata((ContextMenu) null)); 1842public ContextMenu ContextMenu 1846return (ContextMenu)GetValue(ContextMenuProperty);
System\Windows\FrameworkElement.cs (3)
5899new FrameworkPropertyMetadata((ContextMenu) null)); 5904public ContextMenu ContextMenu 5908return GetValue(ContextMenuProperty) as ContextMenu;
System\Windows\Generated\FrameworkContentElement.cs (2)
623ContextMenu contextMenu = 628RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Generated\FrameworkElement.cs (2)
643ContextMenu contextMenu = 648RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
198case 105: t = () => typeof(ContextMenu); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4575Type type = typeof(System.Windows.Controls.ContextMenu); 4577this.GetXamlType(typeof(System.Windows.Controls.ContextMenu)), // DeclaringType 4584GetDelegate = delegate (object target) { return ((System.Windows.Controls.ContextMenu)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3119typeof(System.Windows.Controls.ContextMenu),
System\Windows\Markup\KnownTypes.cs (1)
5652case KnownElements.ContextMenu: t = typeof(System.Windows.Controls.ContextMenu); break;