SystemMediaTransportControls.PropertyChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于 SystemMediaTransportControls 上的屬性已變更時。
// Register
event_token PropertyChanged(TypedEventHandler<SystemMediaTransportControls, SystemMediaTransportControlsPropertyChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void PropertyChanged(event_token const* cookie) const;
// Revoke with event_revoker
SystemMediaTransportControls::PropertyChanged_revoker PropertyChanged(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, SystemMediaTransportControlsPropertyChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,SystemMediaTransportControlsPropertyChangedEventArgs> PropertyChanged;
function onPropertyChanged(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("propertychanged", onPropertyChanged);
systemMediaTransportControls.removeEventListener("propertychanged", onPropertyChanged);
- or -
systemMediaTransportControls.onpropertychanged = onPropertyChanged;
Public Custom Event PropertyChanged As TypedEventHandler(Of SystemMediaTransportControls, SystemMediaTransportControlsPropertyChangedEventArgs)
事件類型
TypedEventHandler<SystemMediaTransportControls,SystemMediaTransportControlsPropertyChangedEventArgs>
備註
使用SystemMediaTransportControlsPropertyChangedEventArgs事件屬性值來判斷哪些屬性已變更。