共用方式為


ContentEnvironmentStateChangedEventArgs.DidDisplayIdChange Property

Definition

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

Boolean

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.

Applies to

See also