Share via


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

See Also

Reference

MenuAction Class

Microsoft.Windows.Design.Interaction Namespace

ICommand

PrimarySelectionContextMenuProvider

MenuGroup

Other Resources

Walkthrough: Creating a Menu Provider