ProjectionManager.ProjectionDisplayAvailableChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a projector or other secondary display becomes available or unavailable.
// 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)