Skip to content

DisplayInformation exception in WinUI3 preview4 #4228

Closed
@arivoir

Description

@arivoir

Since preview 4 the following code is throwing an exception

Windows.Graphics.Display.DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel

Element not found. (0x80070490)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)

Is this a bug, or is there any way round?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions