MediaCommands 類別

定義

提供一組標準的媒體相關命令。

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

備註

類別中的命令 MediaCommands 和其他命令連結庫類別中的命令,例如 ComponentCommandsApplicationCommands,旨在代表應用程式程式設計人員經常遇到的一組常見命令。 命令只代表的 RoutedCommand 實例,而不是 命令的實作邏輯。 實作邏輯會透過 CommandBindings系結至 命令。 例如,如果在 Play 命令目標) (控件上執行命令,執行命令的邏輯 Play 可能不會由命令目標提供,因此應用程式寫入器會負責撰寫決定命令目標如何處理命令的邏輯。

許多控件確實會為命令連結庫中的許多命令提供實作邏輯。 例如,類別TextBox提供命令、Cut命令、Copy命令、Undo命令和Redo命令的Paste邏輯。

如需命令和命令的詳細資訊,請參閱 命令概觀

屬性

BoostBass

取得表示 Boost Base 命令的值。

ChannelDown

取得表示 Channel Down 命令的值。

ChannelUp

取得表示 Channel Up 命令的值。

DecreaseBass

取得表示 Decrease Bass 命令的值。

DecreaseMicrophoneVolume

取得表示 Decrease Microphone Volume 命令的值。

DecreaseTreble

取得表示 Decrease Treble 命令的值。

DecreaseVolume

取得表示 Decrease Volume 命令的值。

FastForward

取得表示 Fast Forward 命令的值。

IncreaseBass

取得代表 Increase Bass 命令的值。

IncreaseMicrophoneVolume

取得表示提高麥克風音量命令的值。

IncreaseTreble

取得值,這個值代表 Increase Treble 命令。

IncreaseVolume

取得表示 Increase Volume 命令的值。

MuteMicrophoneVolume

取得表示將麥克風靜音命令的值。

MuteVolume

取得表示 Mute Volume 命令的值。

NextTrack

取得表示 Next Track 命令的值。

Pause

取得代表 Pause 命令的值。

Play

取得代表 Play 命令的值。

PreviousTrack

取得表示 Previous Track 命令的值。

Record

取得表示 Record 命令的值。

Rewind

取得表示 Rewind 命令的值。

Select

取得代表 Select 命令的值。

Stop

取得表示 Stop 命令的值。

ToggleMicrophoneOnOff

取得代表 Toggle Microphone On Off 命令的值。

TogglePlayPause

取得表示 Toggle Play Pause 命令的值。

適用於

另請參閱