MediaCommands Class
TOC
Collapse the table of content
Expand the table of content

MediaCommands Class

 

Provides a standard set of media related commands.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Input.MediaCommands

public static class MediaCommands

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticBoostBass

Gets the value that represents the Boost Base command.

System_CAPS_pubpropertySystem_CAPS_staticChannelDown

Gets the value that represents the Channel Down command.

System_CAPS_pubpropertySystem_CAPS_staticChannelUp

Gets the value that represents the Channel Up command.

System_CAPS_pubpropertySystem_CAPS_staticDecreaseBass

Gets the value that represents the Decrease Bass command.

System_CAPS_pubpropertySystem_CAPS_staticDecreaseMicrophoneVolume

Gets the value that represents the Decrease Microphone Volume command.

System_CAPS_pubpropertySystem_CAPS_staticDecreaseTreble

Gets the value that represents the Decrease Treble command.

System_CAPS_pubpropertySystem_CAPS_staticDecreaseVolume

Gets the value that represents the Decrease Volume command.

System_CAPS_pubpropertySystem_CAPS_staticFastForward

Gets the value that represents the Fast Forward command.

System_CAPS_pubpropertySystem_CAPS_staticIncreaseBass

Gets the value that represents the Increase Bass command.

System_CAPS_pubpropertySystem_CAPS_staticIncreaseMicrophoneVolume

Gets the value that represents the Increase Microphone Volume command.

System_CAPS_pubpropertySystem_CAPS_staticIncreaseTreble

Gets the value that represents the Increase Treble command.

System_CAPS_pubpropertySystem_CAPS_staticIncreaseVolume

Gets the value that represents the Increase Volume command.

System_CAPS_pubpropertySystem_CAPS_staticMuteMicrophoneVolume

Gets the value that represents the Mute Microphone Volume command.

System_CAPS_pubpropertySystem_CAPS_staticMuteVolume

Gets the value that represents the Mute Volume command.

System_CAPS_pubpropertySystem_CAPS_staticNextTrack

Gets the value that represents the Next Track command.

System_CAPS_pubpropertySystem_CAPS_staticPause

Gets the value that represents the Pause command.

System_CAPS_pubpropertySystem_CAPS_staticPlay

Gets the value that represents the Play command.

System_CAPS_pubpropertySystem_CAPS_staticPreviousTrack

Gets the value that represents the Previous Track command.

System_CAPS_pubpropertySystem_CAPS_staticRecord

Gets the value that represents the Record command.

System_CAPS_pubpropertySystem_CAPS_staticRewind

Gets the value that represents the Rewind command.

System_CAPS_pubpropertySystem_CAPS_staticSelect

Gets the value that represents the Select command.

System_CAPS_pubpropertySystem_CAPS_staticStop

Gets the value that represents the Stop command.

System_CAPS_pubpropertySystem_CAPS_staticToggleMicrophoneOnOff

Gets the value that represents the Toggle Microphone On Off command.

System_CAPS_pubpropertySystem_CAPS_staticTogglePlayPause

Gets the value that represents the Toggle Play Pause command.

The commands in the MediaCommands class and commands in the other command library classes, such as ComponentCommands and ApplicationCommands, are intended to represent a set of common commands that application programmers encounter frequently. The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. The implementation logic is bound to the command via a CommandBindings. For example, if the Play command is executed on a control (the command target), the logic which performs the Play command may not be provided by the command target, so the application writer will be responsible for writing the logic that determines how the command target will handle the command.

Many controls do provide implementation logic for many of the commands in the command library. For example, the TextBox class provides logic for the Paste command, Cut command, Copy command, Undo command, and Redo command.

For more information on commands and commanding see the Commanding Overview.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft