#348 – Predefined Command Objects, Part I
July 22, 2011 Leave a comment
When you associate a button or menu item to a command object by setting its Command property, you typically associate the control with a preexisting command object. You can also create your own command, e.g. an instance of a RoutedUICommand.
The preexisting commands listed below are all static properties, pointing to instances of a RoutedUICommand.
- In ApplicationCommands
- CancelPrint
- Close
- ContextMenu
- Copy
- CorrectionList
- Cut
- Delete
- Find
- Help
- New
- Open
- Paste
- PrintPreview
- Properties
- Redo
- Replace
- Save
- SaveAs
- SelectAll
- Stop
- Undo
- In ComponentCommands
- ExtendSelectionDown
- ExtendSelectionLeft
- ExtendSelectionRight
- ExtendSelectionUp
- MoveDown
- MoveFocusBack
- MoveFocusDown
- MoveFocusForward
- MoveFocusPageDown
- MoveFocusPageUp
- MoveFocusUp
- MoveLeft
- MoveRight
- MoveToEnd
- MoveToHome
- MoveToPageDown
- MoveToPageUp
- MoveUp
- ScrollByLine
- ScrollPageDown
- ScrollPageLeft
- ScrollPageRight
- ScrollPageUp
- SelectToEnd
- SelectToHome
- SelectToPageDown
- SelectToPageUp
- In MediaCommands
- BoostBass
- ChannelDown
- ChannelUp
- DecreaseBass
- DecreaseMicrophoneVolume
- DecreaseTreble
- DecreaseVolume
- FastForward
- IncreaseBass
- IncreaseMicrophoneVolume
- IncreaseTreble
- IncreaseVolume
- MuteMicrophoneVolume
- MuteVolume
- NextTrack
- Pause
- Play
- PreviousTrack
- Record
- Rewind
- Select
- Stop
- ToggleMicrophoneOnOff
- TogglePlayPause
More commands coming next time–in NavigationCommands and EditingCommands.