MediaCommands 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一組標準的媒體相關命令。
public ref class MediaCommands abstract sealed
public static class MediaCommands
type MediaCommands = class
Public Class MediaCommands
- 繼承
-
MediaCommands
類別中的命令 MediaCommands 和其他命令連結庫類別中的命令,例如 ComponentCommands 和 ApplicationCommands,旨在代表應用程式程式設計人員經常遇到的一組常見命令。 命令只代表的 RoutedCommand 實例,而不是 命令的實作邏輯。 實作邏輯會透過 CommandBindings系結至 命令。 例如,如果在 Play 命令目標) (控件上執行命令,執行命令的邏輯 Play 可能不會由命令目標提供,因此應用程式寫入器會負責撰寫決定命令目標如何處理命令的邏輯。
許多控件確實會為命令連結庫中的許多命令提供實作邏輯。 例如,類別TextBox提供命令、Cut命令、Copy命令、Undo命令和Redo命令的Paste邏輯。
如需命令和命令的詳細資訊,請參閱 命令概觀。
Boost |
取得表示 Boost Base 命令的值。 |
Channel |
取得表示 Channel Down 命令的值。 |
Channel |
取得表示 Channel Up 命令的值。 |
Decrease |
取得表示 Decrease Bass 命令的值。 |
Decrease |
取得表示 Decrease Microphone Volume 命令的值。 |
Decrease |
取得表示 Decrease Treble 命令的值。 |
Decrease |
取得表示 Decrease Volume 命令的值。 |
Fast |
取得表示 Fast Forward 命令的值。 |
Increase |
取得代表 Increase Bass 命令的值。 |
Increase |
取得表示提高麥克風音量命令的值。 |
Increase |
取得值,這個值代表 Increase Treble 命令。 |
Increase |
取得表示 Increase Volume 命令的值。 |
Mute |
取得表示將麥克風靜音命令的值。 |
Mute |
取得表示 Mute Volume 命令的值。 |
Next |
取得表示 Next Track 命令的值。 |
Pause |
取得代表 Pause 命令的值。 |
Play |
取得代表 Play 命令的值。 |
Previous |
取得表示 Previous Track 命令的值。 |
Record |
取得表示 Record 命令的值。 |
Rewind |
取得表示 Rewind 命令的值。 |
Select |
取得代表 Select 命令的值。 |
Stop |
取得表示 Stop 命令的值。 |
Toggle |
取得代表 Toggle Microphone On Off 命令的值。 |
Toggle |
取得表示 Toggle Play Pause 命令的值。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |