DisplayProperties.LogicalDpiChanged DisplayProperties.LogicalDpiChanged DisplayProperties.LogicalDpiChanged DisplayProperties.LogicalDpiChanged DisplayProperties.LogicalDpiChanged Event

Definition

Note

DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation.

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

public : event DisplayPropertiesEventHandler LogicalDpiChanged
// Register
event_token LogicalDpiChanged(DisplayPropertiesEventHandler const& handler) const;

// Revoke with event_token
void LogicalDpiChanged(event_token const& cookie) const;

// Revoke with event_revoker
LogicalDpiChanged_revoker LogicalDpiChanged(auto_revoker_t, DisplayPropertiesEventHandler const& handler) const;
public event DisplayPropertiesEventHandler LogicalDpiChanged
Public Event DisplayPropertiesEventHandler LogicalDpiChanged
function onLogicalDpiChanged(eventArgs){/* Your code */}


displayProperties.addEventListener("logicalDpiChanged", onLogicalDpiChanged);
displayProperties.removeEventListener("logicalDpiChanged", onLogicalDpiChanged);