DisplayPropertiesEventHandler DisplayPropertiesEventHandler DisplayPropertiesEventHandler DisplayPropertiesEventHandler DisplayPropertiesEventHandler Delegate



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)
struct DisplayPropertiesEventHandler : winrt::Windows::Foundation::IUnknown
   DisplayPropertiesEventHandler(std::nulptr_t = nullptr) noexcept {}
   template <typename L> DisplayPropertiesEventHandler(L lambda);
   template <typename F> DisplayPropertiesEventHandler(F* function);
   template <typename O, typename M> DisplayPropertiesEventHandler(O* object, M method);
   void operator()(winrt::Windows::Graphics::Display::DisplayPropertiesEventHandler const& sender) const;
public delegate void DisplayPropertiesEventHandler(Object sender)
Public Delegate DisplayPropertiesEventHandler(sender As Object)
var displayPropertiesEventHandler = function(sender) {

 /* Your code */

Object Object Object

The object that raised the event.

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


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

void GameRenderer::OnStereoEnableChanged(
_In_ Platform::Object^ sender


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.