MenuAction.Command Property
Gets the command which represents the menu action.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public ReadOnly Property Command As ICommand
'Usage
Dim instance As MenuAction
Dim value As ICommand
value = instance.Command
public ICommand Command { get; }
public:
property ICommand^ Command {
ICommand^ get ();
}
public 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