38 references to ContextMenuProperty
PresentationFramework (17)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
93
if (documentGrid.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
371
cm = e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
) as ContextMenu;
System\Windows\Controls\GridViewColumnHeader.cs (2)
73
ContextMenuProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
609
else if (dp == GridViewColumnHeader.
ContextMenuProperty
)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1752
GridViewColumnHeader.
ContextMenuProperty
,
System\Windows\Controls\Primitives\ScrollBar.cs (4)
719
ContextMenuProperty
.OverrideMetadata(typeof(ScrollBar), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceContextMenu)));
793
sb.GetValueSource(
ContextMenuProperty
, null, out hasModifiers) == BaseValueSourceInternal.Default && !hasModifiers)
823
CoerceValue(
ContextMenuProperty
);
836
CoerceValue(
ContextMenuProperty
);
System\windows\Documents\TextEditorContextMenu.cs (3)
77
contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
);
90
contextMenu = (ContextMenu)element.GetValue(FrameworkElement.
ContextMenuProperty
);
132
if (This.UiScope.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
System\Windows\FrameworkElement.cs (2)
5924
return GetValue(
ContextMenuProperty
) as ContextMenu;
5929
SetValue(
ContextMenuProperty
, value);
System\Windows\Generated\FrameworkElement.cs (2)
654
LookupEntry(
ContextMenuProperty
.GlobalIndex),
655
ContextMenuProperty
,
System\Windows\StyleHelper.cs (1)
5600
if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.
ContextMenuProperty
|| dp == FrameworkElement.ToolTipProperty)
System.Windows.Controls.Ribbon (21)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
105
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
773
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (2)
52
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
66
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (2)
51
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
65
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
68
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
124
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
69
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
166
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
63
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
705
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
63
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
656
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (2)
51
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
65
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
72
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
50
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
69
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (2)
52
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
72
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.