-api-id | -api-type | ms.custom |
---|---|---|
T:Windows.UI.Xaml.Input.StandardUICommand |
winrt class |
RS5 |
Derives from XamlUICommand, adding a set of standard platform commands with pre-defined properties.
XamlUICommand implements the ICommand interface (Windows.UI.Xaml.Input.ICommand for C++ or System.Windows.Input.ICommand for C#), adding various UI properties, methods, and events.
The platform provides the following set of commands.
Command | Icon | Keyboard shortcut | Label | Description |
---|---|---|---|---|
Cut | ||||
Copy | ||||
Paste | ||||
Select All | ||||
Delete | ||||
Share | ||||
Save | ||||
Open | ||||
Close | ||||
Pause | ||||
Play | ||||
Stop | ||||
Forward | ||||
Backward | ||||
Undo | ||||
Redo |
XamlUICommand, Commanding in Universal Windows Platform apps using StandardUICommand, XamlUICommand, and ICommand
Tip
For more info, design guidance, and code examples, see Command design basics.
If you have the WinUI 2 Gallery app installed, click here to open the app and see the StandardUICommand in action.