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