Appendix K. Commanding Classes
This appendix summarizes predefined commanding classes. WPF provides these objects as static methods in the five classes described in the following sections. For more information about commanding, see Chapter 19.
ApplicationCommands
The ApplicationCommands
class provides commands that apply at the application level. Table K-1 shows the commands and their keyboard gestures (or "N/A" for commands without gestures).
Table K.1. ApplicationCommand Commands
Command | Gesture |
---|---|
| N/A |
| [Ctrl]+X or [Shift]+[Delete] |
| [Shift]+[F10] |
| [Ctrl]+C, [Shift]+[Delete] |
| N/A |
| [Ctrl]+X |
| [Delete] |
| [Ctrl]+F |
| [F1] |
| [Ctrl]+N |
| N/A |
| [Ctrl]+O |
| [Ctrl]+V |
| [Ctrl]+P |
| [Ctrl]+[F2] |
| [F4] |
| [Ctrl]+Y |
| [Ctrl]+H |
| [Ctrl]+S |
| [Ctrl]+H |
| [Ctrl]+A |
| [Escape] |
| [Ctrl]+Z |
ComponentCommands
The ComponentCommands
class defines commands that make sense for many kind of components. Many of these deal with changing focus or selection. Table K-2 shows the commands and their keyboard gestures.
Table K.2. ComponentCommands Commands
Command | Gesture |
---|---|
| [Shift]+Down |
| [Shift]+Left |
| [Shift]+Right |
| [Shift]+Up |
| Down |
| [Ctrl]+Left |
| [Ctrl]+Down |
| [Ctrl]+Right |
| [Ctrl]+[PageDown] |
| [Ctrl]+[PageUp] |
| [Ctrl]+Up |
| Left |
| Right |
| [End] |
| [Home] |
| [PageDown] |
|
Get WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.