MediaCommands MediaCommands MediaCommands MediaCommands Class

定义

提供媒体相关命令的标准集。Provides a standard set of media related commands.

public ref class MediaCommands abstract sealed
public static class MediaCommands
type MediaCommands = class
Public Class MediaCommands
继承
MediaCommandsMediaCommandsMediaCommandsMediaCommands

注解

中的命令MediaCommands类和命令中的其他命令库类,如ComponentCommandsApplicationCommands,用于表示一组的应用程序程序员经常遇到的常见命令。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. 命令仅表示的实例RoutedCommand和不该命令的实现逻辑。The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. 实现逻辑绑定到通过命令CommandBindingsThe implementation logic is bound to the command via a CommandBindings. 例如,如果Play控件 (命令目标),后者将执行的逻辑上执行命令Play命令可能无法提供命令目标,因此应用程序编写器来负责编写逻辑确定命令目标将如何处理该命令。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. 例如,TextBox类提供了逻辑Paste命令,Cut命令,Copy命令,Undo命令,和Redo命令。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.

属性

BoostBass BoostBass BoostBass BoostBass

获取表示“提升基础”命令的值。Gets the value that represents the Boost Base command.

ChannelDown ChannelDown ChannelDown ChannelDown

获取表示 Channel Down 命令的值。Gets the value that represents the Channel Down command.

ChannelUp ChannelUp ChannelUp ChannelUp

获取表示“频道递增”命令的值。Gets the value that represents the Channel Up command.

DecreaseBass DecreaseBass DecreaseBass DecreaseBass

获取表示“降低低音”命令的值。Gets the value that represents the Decrease Bass command.

DecreaseMicrophoneVolume DecreaseMicrophoneVolume DecreaseMicrophoneVolume DecreaseMicrophoneVolume

获取表示 Decrease Microphone Volume 命令的值。Gets the value that represents the Decrease Microphone Volume command.

DecreaseTreble DecreaseTreble DecreaseTreble DecreaseTreble

获取表示“降低高音”命令的值。Gets the value that represents the Decrease Treble command.

DecreaseVolume DecreaseVolume DecreaseVolume DecreaseVolume

获取表示“降低音量”命令的值。Gets the value that represents the Decrease Volume command.

FastForward FastForward FastForward FastForward

获取表示 Fast Forward 命令的值。Gets the value that represents the Fast Forward command.

IncreaseBass IncreaseBass IncreaseBass IncreaseBass

获取表示“提高低音”命令的值。Gets the value that represents the Increase Bass command.

IncreaseMicrophoneVolume IncreaseMicrophoneVolume IncreaseMicrophoneVolume IncreaseMicrophoneVolume

获取表示“提高麦克风音量”命令的值。Gets the value that represents the Increase Microphone Volume command.

IncreaseTreble IncreaseTreble IncreaseTreble IncreaseTreble

获取表示“提高高音”命令的值。Gets the value that represents the Increase Treble command.

IncreaseVolume IncreaseVolume IncreaseVolume IncreaseVolume

获取表示“提高音量”命令的值。Gets the value that represents the Increase Volume command.

MuteMicrophoneVolume MuteMicrophoneVolume MuteMicrophoneVolume MuteMicrophoneVolume

获取表示“将麦克风静音”命令的值。Gets the value that represents the Mute Microphone Volume command.

MuteVolume MuteVolume MuteVolume MuteVolume

获取表示“静音”命令的值。Gets the value that represents the Mute Volume command.

NextTrack NextTrack NextTrack NextTrack

获取表示“下一曲目”命令的值。Gets the value that represents the Next Track command.

Pause Pause Pause Pause

获取表示“暂停”命令的值。Gets the value that represents the Pause command.

Play Play Play Play

获取表示“播放”命令的值。Gets the value that represents the Play command.

PreviousTrack PreviousTrack PreviousTrack PreviousTrack

获取表示 Previous Track 命令的值。Gets the value that represents the Previous Track command.

Record Record Record Record

获取表示“记录”命令的值。Gets the value that represents the Record command.

Rewind Rewind Rewind Rewind

获取表示“后退”命令的值。Gets the value that represents the Rewind command.

Select Select Select Select

获取表示“选择”命令的值。Gets the value that represents the Select command.

Stop Stop Stop Stop

获取表示“停止”命令的值。Gets the value that represents the Stop command.

ToggleMicrophoneOnOff ToggleMicrophoneOnOff ToggleMicrophoneOnOff ToggleMicrophoneOnOff

获取表示“打开/关闭麦克风”命令的值。Gets the value that represents the Toggle Microphone On Off command.

TogglePlayPause TogglePlayPause TogglePlayPause TogglePlayPause

获取表示“切换播放暂停”命令的值。Gets the value that represents the Toggle Play Pause command.

适用于

另请参阅