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