DisplayPropertiesEventHandler delegate
Represents a method that handles display property events.
Syntax
var displayPropertiesEventHandler = function(sender) { /* Your code */ }
Attributes
- GuidAttribute("dbdd8b01-f1a1-46d1-9ee3-543bcc995980")
- VersionAttribute(NTDDI_WIN8)
Parameters
- sender
-
Type: Object [JavaScript] | System.Object [.NET] | Platform::Object [C++]
The object that raised the event.
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.
Examples
void GameRenderer::Initialize( ) { DisplayProperties::StereoEnabledChanged += ref new DisplayPropertiesEventHandler(this, &GameRenderer::OnStereoEnableChanged); } void GameRenderer::OnStereoEnableChanged( _In_ Platform::Object^ sender ) { UpdateForStereoChange(); }
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
Build date: 2/25/2013
