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類別中的命令和其他命令程式庫類別 ( ComponentCommands例如和ApplicationCommands) 中的命令, 主要是用來代表應用程式設計人員經常遇到的一組常見命令。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類別會提供Copy Cut Paste命令、命令、命令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

取得表示 Boost Base 命令的值。Gets the value that represents the Boost Base command.

ChannelDown

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

ChannelUp

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

DecreaseBass

取得表示 Decrease Bass 命令的值。Gets the value that represents the Decrease Bass command.

DecreaseMicrophoneVolume

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

DecreaseTreble

取得表示 Decrease Treble 命令的值。Gets the value that represents the Decrease Treble command.

DecreaseVolume

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

FastForward

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

IncreaseBass

取得代表 Increase Bass 命令的值。Gets the value that represents the Increase Bass command.

IncreaseMicrophoneVolume

取得表示提高麥克風音量命令的值。Gets the value that represents the Increase Microphone Volume command.

IncreaseTreble

取得值,這個值代表 Increase Treble 命令。Gets the value that represents the Increase Treble command.

IncreaseVolume

取得表示 Increase Volume 命令的值。Gets the value that represents the Increase Volume command.

MuteMicrophoneVolume

取得表示將麥克風靜音命令的值。Gets the value that represents the Mute Microphone Volume command.

MuteVolume

取得表示 Mute Volume 命令的值。Gets the value that represents the Mute Volume command.

NextTrack

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

Pause

取得代表 Pause 命令的值。Gets the value that represents the Pause command.

Play

取得代表 Play 命令的值。Gets the value that represents the Play command.

PreviousTrack

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

Record

取得表示 Record 命令的值。Gets the value that represents the Record command.

Rewind

取得表示 Rewind 命令的值。Gets the value that represents the Rewind command.

Select

取得代表 Select 命令的值。Gets the value that represents the Select command.

Stop

取得表示 Stop 命令的值。Gets the value that represents the Stop command.

ToggleMicrophoneOnOff

取得代表 Toggle Microphone On Off 命令的值。Gets the value that represents the Toggle Microphone On Off command.

TogglePlayPause

取得表示 Toggle Play Pause 命令的值。Gets the value that represents the Toggle Play Pause command.

適用於

另請參閱