39 references to ContextMenuService
PresentationFramework (39)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
67
EventManager.RegisterClassHandler(typeof(ComboBox),
ContextMenuService
.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true);
68
EventManager.RegisterClassHandler(typeof(ComboBox),
ContextMenuService
.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true);
src\Framework\System\Windows\Controls\ContextMenu.cs (12)
89
ContextMenuService
.HorizontalOffsetProperty.AddOwner(typeof(ContextMenu),
95
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.HorizontalOffsetProperty);
113
ContextMenuService
.VerticalOffsetProperty.AddOwner(typeof(ContextMenu),
119
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.VerticalOffsetProperty);
181
ContextMenuService
.PlacementTargetProperty.AddOwner(
188
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.PlacementTargetProperty);
206
ContextMenuService
.PlacementRectangleProperty.AddOwner(typeof(ContextMenu),
212
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.PlacementRectangleProperty);
229
ContextMenuService
.PlacementProperty.AddOwner(typeof(ContextMenu),
235
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.PlacementProperty);
252
ContextMenuService
.HasDropShadowProperty.AddOwner(
266
return PopupControlService.CoerceProperty(d, value,
ContextMenuService
.HasDropShadowProperty);
src\Framework\System\Windows\Controls\ContextMenuService.cs (13)
31
typeof(
ContextMenuService
), // Owner
84
typeof(
ContextMenuService
), // Owner
123
typeof(
ContextMenuService
), // Owner
162
typeof(
ContextMenuService
), // Owner
199
typeof(
ContextMenuService
), // Owner
237
typeof(
ContextMenuService
), // Owner
275
typeof(
ContextMenuService
), // Owner
313
typeof(
ContextMenuService
), // Owner
351
typeof(
ContextMenuService
), // Owner
398
typeof(
ContextMenuService
));
427
typeof(
ContextMenuService
));
513
RoutedEvent =(opening ?
ContextMenuService
.ContextMenuOpeningEvent :
ContextMenuService
.ContextMenuClosingEvent);
src\Framework\System\Windows\Controls\PopupControlService.cs (2)
880
if ((o != null) &&
ContextMenuService
.ContextMenuIsEnabled(o))
883
object menu =
ContextMenuService
.GetContextMenu(o);
src\Framework\System\Windows\Controls\StickyNote.cs (1)
125
EventManager.RegisterClassHandler(owner,
ContextMenuService
.ContextMenuOpeningEvent, new ContextMenuEventHandler(_OnContextMenuOpening));
src\Framework\System\Windows\FrameworkContentElement.cs (3)
1868
ContextMenuService
.ContextMenuProperty.AddOwner(typeof(FrameworkContentElement),
1960
public static readonly RoutedEvent ContextMenuOpeningEvent =
ContextMenuService
.ContextMenuOpeningEvent.AddOwner(typeof(FrameworkContentElement));
1991
public static readonly RoutedEvent ContextMenuClosingEvent =
ContextMenuService
.ContextMenuClosingEvent.AddOwner(typeof(FrameworkContentElement));
src\Framework\System\Windows\FrameworkElement.cs (3)
5919
ContextMenuService
.ContextMenuProperty.AddOwner(
6012
public static readonly RoutedEvent ContextMenuOpeningEvent =
ContextMenuService
.ContextMenuOpeningEvent.AddOwner(_typeofThis);
6043
public static readonly RoutedEvent ContextMenuClosingEvent =
ContextMenuService
.ContextMenuClosingEvent.AddOwner(_typeofThis);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
198
case 106: t = () => typeof(
ContextMenuService
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2973
typeof(System.Windows.Controls.
ContextMenuService
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5650
case KnownElements.ContextMenuService: t = typeof(System.Windows.Controls.
ContextMenuService
); break;