Compartir a través de


ContentSiteEnvironment.DisplayId Property

Definition

Gets or sets the "metrics authority" monitor ID.

public:
 property DisplayId DisplayId { DisplayId get(); void set(DisplayId value); };
DisplayId DisplayId();

void DisplayId(DisplayId value);
public DisplayId DisplayId { get; set; }
var displayId = contentSiteEnvironment.displayId;
contentSiteEnvironment.displayId = displayId;
Public Property DisplayId As DisplayId

Property Value

The "metrics authority" monitor ID.

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