DisplayInformation.DpiChanged | dpichanged event

Applies to Windows and Windows Phone

Occurs when the LogicalDpi property changes because the pixels per inch (PPI) of the display changes.

Syntax


function onDpiChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
displayInformation.addEventListener("dpichanged", onDpiChanged);
displayInformation.removeEventListener("dpichanged", onDpiChanged);
 
- or -

displayInformation.ondpichanged = onDpiChanged;


Event information

Delegate TypedEventHandler<DisplayInformation, Object>

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Graphics.Display
Windows::Graphics::Display [C++]

Metadata

Windows.winmd

See also

DisplayInformation

 

 

Show:
© 2015 Microsoft