共用方式為


MediaPlayer.IsMutedChanged 事件

定義

發生于 MediaPlayer 的目前靜音狀態變更時。

// Register
event_token IsMutedChanged(TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;

// Revoke with event_token
void IsMutedChanged(event_token const* cookie) const;

// Revoke with event_revoker
MediaPlayer::IsMutedChanged_revoker IsMutedChanged(auto_revoke_t, TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,object> IsMutedChanged;
function onIsMutedChanged(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("ismutedchanged", onIsMutedChanged);
mediaPlayer.removeEventListener("ismutedchanged", onIsMutedChanged);
- or -
mediaPlayer.onismutedchanged = onIsMutedChanged;
Public Custom Event IsMutedChanged As TypedEventHandler(Of MediaPlayer, Object) 

事件類型

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

適用於