38 references to ContextMenuProperty
PresentationFramework (17)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
85
if (documentGrid.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
369
cm = e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
) as ContextMenu;
System\Windows\Controls\GridViewColumnHeader.cs (2)
69
ContextMenuProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
605
else if (dp == GridViewColumnHeader.
ContextMenuProperty
)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1749
GridViewColumnHeader.
ContextMenuProperty
,
System\Windows\Controls\Primitives\ScrollBar.cs (4)
703
ContextMenuProperty
.OverrideMetadata(typeof(ScrollBar), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceContextMenu)));
777
sb.GetValueSource(
ContextMenuProperty
, null, out hasModifiers) == BaseValueSourceInternal.Default && !hasModifiers)
807
CoerceValue(
ContextMenuProperty
);
820
CoerceValue(
ContextMenuProperty
);
System\windows\Documents\TextEditorContextMenu.cs (3)
75
contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
);
88
contextMenu = (ContextMenu)element.GetValue(FrameworkElement.
ContextMenuProperty
);
130
if (This.UiScope.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
System\Windows\FrameworkElement.cs (2)
5913
return GetValue(
ContextMenuProperty
) as ContextMenu;
5918
SetValue(
ContextMenuProperty
, value);
System\Windows\Generated\FrameworkElement.cs (2)
648
LookupEntry(
ContextMenuProperty
.GlobalIndex),
649
ContextMenuProperty
,
System\Windows\StyleHelper.cs (1)
5594
if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.
ContextMenuProperty
|| dp == FrameworkElement.ToolTipProperty)
System.Windows.Controls.Ribbon (21)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
102
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
770
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (2)
49
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
63
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (2)
49
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
63
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
66
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
122
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
66
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
163
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
60
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
702
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
60
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
653
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (2)
49
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
63
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
70
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
48
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
67
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (2)
50
ContextMenuProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnContextMenuChanged, RibbonHelper.OnCoerceContextMenu));
70
PropertyHelper.TransferProperty(this,
ContextMenuProperty
); // Coerce to get a default ContextMenu if none has been specified.