MenuAction.Command Property
Gets the command which represents the menu action.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public ReadOnly Property Command As ICommand
Get
public ICommand Command { get; }
public:
property ICommand^ Command {
ICommand^ get ();
}
member Command : ICommand
function get Command () : ICommand
Property Value
Type: System.Windows.Input.ICommand
An ICommand which represents the menu action.
Remarks
The designer calls the Execute method on Command to invoke the menu action logic.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionContextMenuProvider