Export (0) Print
Expand All

MediaCommands Class

Provides a standard set of media related commands.

System.Object
  System.Windows.Input.MediaCommands

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

public static class MediaCommands

The MediaCommands type exposes the following members.

  NameDescription
Public propertyStatic memberBoostBassGets the value that represents the Boost Base command.
Public propertyStatic memberChannelDown Gets the value that represents the Channel Down command.
Public propertyStatic memberChannelUp Gets the value that represents the Channel Up command.
Public propertyStatic memberDecreaseBass Gets the value that represents the Decrease Bass command.
Public propertyStatic memberDecreaseMicrophoneVolume Gets the value that represents the Decrease Microphone Volume command.
Public propertyStatic memberDecreaseTreble Gets the value that represents the Decrease Treble command.
Public propertyStatic memberDecreaseVolume Gets the value that represents the Decrease Volume command.
Public propertyStatic memberFastForward Gets the value that represents the Fast Forward command.
Public propertyStatic memberIncreaseBass Gets the value that represents the Increase Bass command.
Public propertyStatic memberIncreaseMicrophoneVolume Gets the value that represents the Increase Microphone Volume command.
Public propertyStatic memberIncreaseTreble Gets the value that represents the Increase Treble command.
Public propertyStatic memberIncreaseVolume Gets the value that represents the Increase Volume command.
Public propertyStatic memberMuteMicrophoneVolume Gets the value that represents the Mute Microphone Volume command.
Public propertyStatic memberMuteVolume Gets the value that represents the Mute Volume command.
Public propertyStatic memberNextTrack Gets the value that represents the Next Track command.
Public propertyStatic memberPause Gets the value that represents the Pause command.
Public propertyStatic memberPlay Gets the value that represents the Play command.
Public propertyStatic memberPreviousTrack Gets the value that represents the Previous Track command.
Public propertyStatic memberRecord Gets the value that represents the Record command.
Public propertyStatic memberRewind Gets the value that represents the Rewind command.
Public propertyStatic memberSelect Gets the value that represents the Select command.
Public propertyStatic memberStop Gets the value that represents the Stop command.
Public propertyStatic memberToggleMicrophoneOnOff Gets the value that represents the Toggle Microphone On Off command.
Public propertyStatic memberTogglePlayPause Gets the value that represents the Toggle Play Pause command.
Top

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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