Skip to content

DisplayInformation throws exception #1609

Open
@selastingeorge

Description

@selastingeorge

I am working on a .net5 project which uses winrt, I was trying to get the scalefactor from the DisplayInformation Class but calling DisplayInformation.GetForCurrentView() throws exception, is it because core window, core application view is not supported in WPF, it throws an COM exception stating "element not found". Is there any way to overcome this, or should i need to continue with win32 methods itself.

Metadata

Metadata

Labels

area-interopInteroperation support for Windows APIs that need context, like an HWNDtheme-UwpParity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions