2 types derived from ContextMenu
PresentationFramework (2)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
162
private class ViewerContextMenu :
ContextMenu
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
443
private class EditorContextMenu :
ContextMenu
6 instantiations of ContextMenu
PresentationFramework (5)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (3)
848
ContextMenu verticalContextMenu = new
ContextMenu
();
868
ContextMenu horizontalContextMenuLeftToRight = new
ContextMenu
();
888
ContextMenu horizontalContextMenuRightToLeft = new
ContextMenu
();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2958
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
ContextMenu
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1187
case KnownElements.ContextMenu: o = new System.Windows.Controls.
ContextMenu
(); break;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
444
ContextMenu newMenu = new
ContextMenu
() { ItemContainerStyleSelector = new ContextMenuItemStyleSelector(this) };
100 references to ContextMenu
PresentationFramework (92)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
91
ContextMenu
contextMenu;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (6)
388
ContextMenu
cm = null;
391
cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as
ContextMenu
;
460
cm.ClearValue(
ContextMenu
.PlacementProperty);
461
cm.ClearValue(
ContextMenu
.PlacementTargetProperty);
462
cm.ClearValue(
ContextMenu
.HorizontalOffsetProperty);
463
cm.ClearValue(
ContextMenu
.VerticalOffsetProperty);
src\Framework\System\Windows\Automation\Peers\ContextMenuAutomationPeer.cs (1)
23
public ContextMenuAutomationPeer(
ContextMenu
owner): base(owner)
src\Framework\System\Windows\Controls\ContextMenu.cs (29)
48
EventManager.RegisterClassHandler(typeof(
ContextMenu
), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed));
50
DefaultStyleKeyProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata(typeof(
ContextMenu
)));
51
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
ContextMenu
));
53
IsTabStopProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
54
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
55
KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
56
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
59
FocusVisualStyleProperty.OverrideMetadata(typeof(
ContextMenu
), new FrameworkPropertyMetadata((object)null /* default value */));
89
ContextMenuService.HorizontalOffsetProperty.AddOwner(typeof(
ContextMenu
),
113
ContextMenuService.VerticalOffsetProperty.AddOwner(typeof(
ContextMenu
),
138
typeof(
ContextMenu
),
157
ContextMenu
ctrl = (
ContextMenu
) d;
182
typeof(
ContextMenu
),
206
ContextMenuService.PlacementRectangleProperty.AddOwner(typeof(
ContextMenu
),
229
ContextMenuService.PlacementProperty.AddOwner(typeof(
ContextMenu
),
253
typeof(
ContextMenu
),
259
ContextMenu
cm = (
ContextMenu
)d;
284
Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(
ContextMenu
));
303
Popup.StaysOpenProperty.AddOwner(typeof(
ContextMenu
));
322
public static readonly RoutedEvent OpenedEvent = PopupControlService.ContextMenuOpenedEvent.AddOwner(typeof(
ContextMenu
));
351
public static readonly RoutedEvent ClosedEvent = PopupControlService.ContextMenuClosedEvent.AddOwner(typeof(
ContextMenu
));
473
MenuItem.InsideContextMenuProperty.AddOwner(typeof(
ContextMenu
),
566
ContextMenu
cm = (
ContextMenu
)arg;
590
ContextMenu
cm = (
ContextMenu
)arg;
src\Framework\System\Windows\Controls\ContextMenuService.cs (6)
30
typeof(
ContextMenu
), // Type
32
new FrameworkPropertyMetadata((
ContextMenu
)null,
41
public static
ContextMenu
GetContextMenu(DependencyObject element)
48
ContextMenu
cm = (
ContextMenu
)element.GetValue(ContextMenuProperty);
69
public static void SetContextMenu(DependencyObject element,
ContextMenu
value)
src\Framework\System\Windows\Controls\GridView.cs (3)
395
typeof(
ContextMenu
),
402
public
ContextMenu
ColumnHeaderContextMenu
404
get { return (
ContextMenu
)GetValue(ColumnHeaderContextMenuProperty); }
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
186
public
ContextMenu
ColumnHeaderContextMenu
188
get { return (
ContextMenu
)GetValue(ColumnHeaderContextMenuProperty); }
src\Framework\System\Windows\Controls\PopupControlService.cs (13)
884
ContextMenu
cm = menu as
ContextMenu
;
902
cm.SetCurrentValueInternal(
ContextMenu
.IsOpenProperty, BooleanBoxes.TrueBox);
919
ContextMenu
cm = source as
ContextMenu
;
1149
if (o is
ContextMenu
)
1151
o.CoerceValue(
ContextMenu
.HorizontalOffsetProperty);
1152
o.CoerceValue(
ContextMenu
.VerticalOffsetProperty);
1153
o.CoerceValue(
ContextMenu
.PlacementTargetProperty);
1154
o.CoerceValue(
ContextMenu
.PlacementRectangleProperty);
1155
o.CoerceValue(
ContextMenu
.PlacementProperty);
1156
o.CoerceValue(
ContextMenu
.HasDropShadowProperty);
1182
else if (dp == ToolTip.PlacementTargetProperty || dp ==
ContextMenu
.PlacementTargetProperty)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (8)
844
private static
ContextMenu
VerticalContextMenu
848
ContextMenu
verticalContextMenu = new ContextMenu();
864
private static
ContextMenu
HorizontalContextMenuLTR
868
ContextMenu
horizontalContextMenuLeftToRight = new ContextMenu();
884
private static
ContextMenu
HorizontalContextMenuRTL
888
ContextMenu
horizontalContextMenuRightToLeft = new ContextMenu();
911
binding.Path = new PropertyPath(
ContextMenu
.PlacementTargetProperty);
913
binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(
ContextMenu
), 1);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
576
ContextMenu
menu = Keyboard.FocusedElement as
ContextMenu
;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (5)
68
ContextMenu
contextMenu = null;
86
contextMenu = (
ContextMenu
)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty);
99
contextMenu = (
ContextMenu
)element.GetValue(FrameworkElement.ContextMenuProperty);
251
UIElement placementTarget = ((
ContextMenu
)sender).PlacementTarget;
261
((
ContextMenu
)sender).Closed -= new RoutedEventHandler(OnContextMenuClosed);
src\Framework\System\Windows\FrameworkContentElement.cs (3)
1869
new FrameworkPropertyMetadata((
ContextMenu
) null));
1874
public
ContextMenu
ContextMenu
1878
return (
ContextMenu
)GetValue(ContextMenuProperty);
src\Framework\System\Windows\FrameworkElement.cs (3)
5921
new FrameworkPropertyMetadata((
ContextMenu
) null));
5926
public
ContextMenu
ContextMenu
5930
return GetValue(ContextMenuProperty) as
ContextMenu
;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (2)
643
ContextMenu
contextMenu =
648
RequestFlags.DeferredReferences).Value as
ContextMenu
;
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
663
ContextMenu
contextMenu =
668
RequestFlags.DeferredReferences).Value as
ContextMenu
;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
197
case 105: t = () => typeof(
ContextMenu
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4311
Type type = typeof(System.Windows.Controls.
ContextMenu
);
4313
this.GetXamlType(typeof(System.Windows.Controls.
ContextMenu
)), // DeclaringType
4319
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
ContextMenu
)target).Items; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2956
typeof(System.Windows.Controls.
ContextMenu
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5649
case KnownElements.ContextMenu: t = typeof(System.Windows.Controls.
ContextMenu
); break;
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (1)
34
protected override void OnContextMenuLoaded(
ContextMenu
menu)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
444
ContextMenu
newMenu = new ContextMenu() { ItemContainerStyleSelector = new ContextMenuItemStyleSelector(this) };
489
void UnloadContextMenu(
ContextMenu
contextMenuToUnload)
548
this.UnloadContextMenu((
ContextMenu
)sender);
System.Activities.Presentation\System\Activities\Presentation\View\GenericActivityTypeDesigner.xaml.cs (1)
29
protected override void OnContextMenuLoaded(
ContextMenu
menu)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
338
public
ContextMenu
ContextMenu
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
567
protected virtual void OnContextMenuLoaded(
ContextMenu
menu)
1055
internal void NotifyContextMenuLoaded(
ContextMenu
menu)