17 references to ContextMenuProperty
PresentationFramework (17)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
110
if (documentGrid.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
391
cm = e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
) as ContextMenu;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
76
ContextMenuProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
599
else if (dp == GridViewColumnHeader.
ContextMenuProperty
)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1755
GridViewColumnHeader.
ContextMenuProperty
,
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (4)
724
ContextMenuProperty
.OverrideMetadata(typeof(ScrollBar), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceContextMenu)));
798
sb.GetValueSource(
ContextMenuProperty
, null, out hasModifiers) == BaseValueSourceInternal.Default && !hasModifiers)
828
CoerceValue(
ContextMenuProperty
);
841
CoerceValue(
ContextMenuProperty
);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (3)
86
contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.
ContextMenuProperty
);
99
contextMenu = (ContextMenu)element.GetValue(FrameworkElement.
ContextMenuProperty
);
141
if (This.UiScope.ReadLocalValue(FrameworkElement.
ContextMenuProperty
) == null)
src\Framework\System\Windows\FrameworkElement.cs (2)
5930
return GetValue(
ContextMenuProperty
) as ContextMenu;
5935
SetValue(
ContextMenuProperty
, value);
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
665
LookupEntry(
ContextMenuProperty
.GlobalIndex),
666
ContextMenuProperty
,
src\Framework\System\Windows\StyleHelper.cs (1)
5600
if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.
ContextMenuProperty
|| dp == FrameworkElement.ToolTipProperty)