ContentEnvironmentStateChangedEventArgs.DidDisplayIdChange Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether the "metrics authority" monitor ID changed.
public:
property bool DidDisplayIdChange { bool get(); };
bool DidDisplayIdChange();
public bool DidDisplayIdChange { get; }
var boolean = contentEnvironmentStateChangedEventArgs.didDisplayIdChange;
Public ReadOnly Property DidDisplayIdChange As Boolean
Property Value
bool
True, if the "metrics authority" monitor ID changed; otherwise, false.
Remarks
Although top-level windows may be displayed across multiple monitors, each top-level window gets its metrics from a single monitor (the DisplayId), which might not have the same dots per inch (dpi) as the Microsoft.UI.Content.ContentIsland.RasterizationScale. Although these values typically match, there are cases where they might not, such as when a user changes the monitor topology or a top level window is moved across dpi boundaries.