-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Input.StandardUICommand |
winrt class |
Derives from XamlUICommand, adding a set of standard platform commands with pre-defined properties.
XamlUICommand implements the ICommand
interface (Microsoft.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 Windows apps using StandardUICommand, XamlUICommand, and ICommand
Tip
For more info, design guidance, and code examples, see Commanding basics.
[!div class="nextstepaction"] Open the WinUI 3 Gallery app and see the StandardUICommand in action
The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.