ContentSiteEnvironmentView.DisplayId 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 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.