ProjectionManager.ProjectionDisplayAvailableChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于投影機或其他次要顯示器變成可用或無法使用時。
// Register
static event_token ProjectionDisplayAvailableChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void ProjectionDisplayAvailableChanged(event_token const* cookie) const;
// Revoke with event_revoker
static ProjectionManager::ProjectionDisplayAvailableChanged_revoker ProjectionDisplayAvailableChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> ProjectionDisplayAvailableChanged;
function onProjectionDisplayAvailableChanged(eventArgs) { /* Your code */ }
Windows.UI.ViewManagement.ProjectionManager.addEventListener("projectiondisplayavailablechanged", onProjectionDisplayAvailableChanged);
Windows.UI.ViewManagement.ProjectionManager.removeEventListener("projectiondisplayavailablechanged", onProjectionDisplayAvailableChanged);
- or -
Windows.UI.ViewManagement.ProjectionManager.onprojectiondisplayavailablechanged = onProjectionDisplayAvailableChanged;
Public Shared Custom Event ProjectionDisplayAvailableChanged As EventHandler(Of Object)