10 references to CommandProperty
PresentationFramework (3)
System\Windows\Controls\MenuItem.cs (3)
390
get { return (ICommand) GetValue(
CommandProperty
); }
391
set { SetValue(
CommandProperty
, value); }
1321
if (!menuItem.HasNonDefaultValue(
CommandProperty
))
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
381
qatPlacementItem.SetBinding(RibbonMenuItem.
CommandProperty
, commandBinding);
457
minimizeTheRibbonItem.SetBinding(RibbonMenuItem.
CommandProperty
, isMinimizedBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1765
new PropertyAndTransferMode () { Property = RibbonMenuItem.
CommandProperty
, Mode = TransferMode.AlwaysTransfer },
2173
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, ButtonBase.CommandProperty, TransferMode.AlwaysTransfer);
2191
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, RibbonSplitButton.CommandProperty, TransferMode.AlwaysTransfer);
2211
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, ButtonBase.CommandProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
59
CommandProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnCommandChanged));