ContentSiteEnvironmentView.DisplayId Property

Definition

Gets the "metrics authority" monitor ID.

public:
 property DisplayId DisplayId { DisplayId get(); };
DisplayId DisplayId();
public DisplayId DisplayId { get; }
var displayId = contentSiteEnvironmentView.displayId;
Public ReadOnly Property DisplayId As DisplayId

Property Value

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