Display​Properties​Event​Handler Display​Properties​Event​Handler Display​Properties​Event​Handler Delegate

Definition

Note

The DisplayProperties type and related event handlers may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation.

Represents a method that handles display property events.

public : delegate void DisplayPropertiesEventHandler(PlatForm::Object sender)public delegate void DisplayPropertiesEventHandler(Object sender)Public Delegate DisplayPropertiesEventHandler(sender As Object)
Parameters
sender
PlatForm::Object Object Object

The object that raised the event.

Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

void GameRenderer::Initialize(
)
{
DisplayProperties::StereoEnabledChanged += 
ref new DisplayPropertiesEventHandler(this, &GameRenderer::OnStereoEnableChanged);
}

void GameRenderer::OnStereoEnableChanged(
_In_ Platform::Object^ sender
)
{
UpdateForStereoChange();
}

Remarks

We recommend that applications use a single delegate to handle most display events because in most cases the change to each display property requires that the application redraw itself. Also, many property changes result from a single mode change that affects the entire operating system.

The Direct3D 11.1 Simple Stereo 3D Sample shows how to handle system stereo changes.