-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DisplayInformation throws exception #1609
Comments
@AdamBraden - this should probably go into the Interop bucket. @Extrimis - which specific property on |
I Was looking for the
The GetScalefactor() function provides me a value that i can multiply with the |
Since there is no more CoreWindow, any |
As of Insider builds from the last few months, we've added a new IDisplayInformationStaticsInterop interface that you can use in your app to create a DisplayInformation instance for your HWND. We recommend using its |
@zhuman That's not particularly helpful for Windows App SDK devs that are targeting 17763+. Maybe the team could consider undocking that impl. and putting it into the Windows App SDK? |
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.
The text was updated successfully, but these errors were encountered: