MediaCommands 类

定义

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

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

注解

类中的命令 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

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

ChannelDown

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

ChannelUp

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

DecreaseBass

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

DecreaseMicrophoneVolume

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

DecreaseTreble

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

DecreaseVolume

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

FastForward

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

IncreaseBass

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

IncreaseMicrophoneVolume

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

IncreaseTreble

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

IncreaseVolume

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

MuteMicrophoneVolume

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

MuteVolume

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

NextTrack

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

Pause

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

Play

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

PreviousTrack

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

Record

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

Rewind

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

Select

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

Stop

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

ToggleMicrophoneOnOff

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

TogglePlayPause

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

适用于

另请参阅