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)
137private class ViewerContextMenu : ContextMenu
System\windows\Documents\TextEditorContextMenu.cs (1)
419private class EditorContextMenu : ContextMenu
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
36public 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)
827ContextMenu verticalContextMenu = new ContextMenu(); 847ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 867ContextMenu horizontalContextMenuRightToLeft = new ContextMenu();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2960bamlType.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)
66ContextMenu contextMenu;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
366ContextMenu cm = null; 369cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu; 438cm.ClearValue(ContextMenu.PlacementProperty); 439cm.ClearValue(ContextMenu.PlacementTargetProperty); 440cm.ClearValue(ContextMenu.HorizontalOffsetProperty); 441cm.ClearValue(ContextMenu.VerticalOffsetProperty);
System\Windows\Automation\Peers\ContextMenuAutomationPeer.cs (1)
13public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
System\Windows\Controls\ContextMenu.cs (29)
36EventManager.RegisterClassHandler(typeof(ContextMenu), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); 38DefaultStyleKeyProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(typeof(ContextMenu))); 39_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ContextMenu)); 41IsTabStopProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 42KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 43KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 44KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 47FocusVisualStyleProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata((object)null /* default value */)); 77ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu), 101ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(ContextMenu), 126typeof(ContextMenu), 145ContextMenu ctrl = (ContextMenu) d; 170typeof(ContextMenu), 194ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(ContextMenu), 217ContextMenuService.PlacementProperty.AddOwner(typeof(ContextMenu), 241typeof(ContextMenu), 247ContextMenu cm = (ContextMenu)d; 272Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 291Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 310public static readonly RoutedEvent OpenedEvent = PopupControlService.ContextMenuOpenedEvent.AddOwner(typeof(ContextMenu)); 339public static readonly RoutedEvent ClosedEvent = PopupControlService.ContextMenuClosedEvent.AddOwner(typeof(ContextMenu)); 461MenuItem.InsideContextMenuProperty.AddOwner(typeof(ContextMenu), 554ContextMenu cm = (ContextMenu)arg; 578ContextMenu cm = (ContextMenu)arg;
System\Windows\Controls\ContextMenuService.cs (6)
25typeof(ContextMenu), // Type 27new FrameworkPropertyMetadata((ContextMenu)null, 36public static ContextMenu GetContextMenu(DependencyObject element) 40ContextMenu cm = (ContextMenu)element.GetValue(ContextMenuProperty); 61public 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)
181public ContextMenu ColumnHeaderContextMenu 183get { return (ContextMenu)GetValue(ColumnHeaderContextMenuProperty); }
System\Windows\Controls\PopupControlService.cs (13)
999ContextMenu cm = menu as ContextMenu; 1017cm.SetCurrentValueInternal(ContextMenu.IsOpenProperty, BooleanBoxes.TrueBox); 1034ContextMenu cm = source as ContextMenu; 1238if (o is ContextMenu) 1240o.CoerceValue(ContextMenu.HorizontalOffsetProperty); 1241o.CoerceValue(ContextMenu.VerticalOffsetProperty); 1242o.CoerceValue(ContextMenu.PlacementTargetProperty); 1243o.CoerceValue(ContextMenu.PlacementRectangleProperty); 1244o.CoerceValue(ContextMenu.PlacementProperty); 1245o.CoerceValue(ContextMenu.HasDropShadowProperty); 1271else if (dp == ToolTip.PlacementTargetProperty || dp == ContextMenu.PlacementTargetProperty)
System\Windows\Controls\Primitives\ScrollBar.cs (8)
823private static ContextMenu VerticalContextMenu 827ContextMenu verticalContextMenu = new ContextMenu(); 843private static ContextMenu HorizontalContextMenuLTR 847ContextMenu horizontalContextMenuLeftToRight = new ContextMenu(); 863private static ContextMenu HorizontalContextMenuRTL 867ContextMenu horizontalContextMenuRightToLeft = new ContextMenu(); 890binding.Path = new PropertyPath(ContextMenu.PlacementTargetProperty); 892binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Controls\StickyNote.cs (2)
550ContextMenu menu = Keyboard.FocusedElement as ContextMenu;
System\windows\Documents\TextEditorContextMenu.cs (6)
57ContextMenu contextMenu = null; 75contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 88contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 240UIElement placementTarget = ((ContextMenu)sender).PlacementTarget; 250((ContextMenu)sender).Closed -= new RoutedEventHandler(OnContextMenuClosed); 425SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (3)
1846new FrameworkPropertyMetadata((ContextMenu) null)); 1851public ContextMenu ContextMenu 1855return (ContextMenu)GetValue(ContextMenuProperty);
System\Windows\FrameworkElement.cs (3)
5904new FrameworkPropertyMetadata((ContextMenu) null)); 5909public ContextMenu ContextMenu 5913return GetValue(ContextMenuProperty) as ContextMenu;
System\Windows\Generated\FrameworkContentElement.cs (2)
624ContextMenu contextMenu = 629RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Generated\FrameworkElement.cs (2)
646ContextMenu contextMenu = 651RequestFlags.DeferredReferences).Value as ContextMenu;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
199case 105: t = () => typeof(ContextMenu); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4334Type type = typeof(System.Windows.Controls.ContextMenu); 4336this.GetXamlType(typeof(System.Windows.Controls.ContextMenu)), // DeclaringType 4342bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ContextMenu)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2958typeof(System.Windows.Controls.ContextMenu),
System\Windows\Markup\KnownTypes.cs (1)
5659case KnownElements.ContextMenu: t = typeof(System.Windows.Controls.ContextMenu); break;