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