Compartilhar via


DisplayProperties.StereoEnabledChanged Evento

Definição

Observação

DisplayProperties pode ser alterado ou indisponível para versões após Windows 8.1. Em vez disso, use DisplayInformation.

Ocorre quando a propriedade StereoEnabled é alterada porque o suporte para alterações 3D estereoscópicas.

public:
 static event DisplayPropertiesEventHandler ^ StereoEnabledChanged;
/// [add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
static event_token StereoEnabledChanged(DisplayPropertiesEventHandler const& handler) const;

// Revoke with event_token
static void StereoEnabledChanged(event_token const* cookie) const;

// Revoke with event_revoker
static DisplayProperties::StereoEnabledChanged_revoker StereoEnabledChanged(auto_revoke_t, DisplayPropertiesEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token StereoEnabledChanged(DisplayPropertiesEventHandler const& handler) const;

// Revoke with event_token
static void StereoEnabledChanged(event_token const* cookie) const;

// Revoke with event_revoker
static DisplayProperties::StereoEnabledChanged_revoker StereoEnabledChanged(auto_revoke_t, DisplayPropertiesEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static event DisplayPropertiesEventHandler StereoEnabledChanged;
[add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static event DisplayPropertiesEventHandler StereoEnabledChanged;
function onStereoEnabledChanged(eventArgs) { /* Your code */ }
Windows.Graphics.Display.DisplayProperties.addEventListener("stereoenabledchanged", onStereoEnabledChanged);
Windows.Graphics.Display.DisplayProperties.removeEventListener("stereoenabledchanged", onStereoEnabledChanged);
- or -
Windows.Graphics.Display.DisplayProperties.onstereoenabledchanged = onStereoEnabledChanged;
Public Shared Custom Event StereoEnabledChanged As DisplayPropertiesEventHandler 

Tipo de evento

Atributos

Aplica-se a