10 references to CommandProperty
PresentationFramework (3)
System\Windows\Controls\MenuItem.cs (3)
400
get { return (ICommand) GetValue(
CommandProperty
); }
401
set { SetValue(
CommandProperty
, value); }
1331
if (!menuItem.HasNonDefaultValue(
CommandProperty
))
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
383
qatPlacementItem.SetBinding(RibbonMenuItem.
CommandProperty
, commandBinding);
459
minimizeTheRibbonItem.SetBinding(RibbonMenuItem.
CommandProperty
, isMinimizedBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1770
new PropertyAndTransferMode () { Property = RibbonMenuItem.
CommandProperty
, Mode = TransferMode.AlwaysTransfer },
2178
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, ButtonBase.CommandProperty, TransferMode.AlwaysTransfer);
2196
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, RibbonSplitButton.CommandProperty, TransferMode.AlwaysTransfer);
2216
TransferProperty(original, clone, RibbonMenuItem.
CommandProperty
, ButtonBase.CommandProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
62
CommandProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(RibbonHelper.OnCommandChanged));