a cross platform version of ResolutionScale?

WadeBoggsWadeBoggs Member
edited September 2018 in Cross Platform with Xamarin

I have a portable project that needs access to UWP's ResolutionScale. I get that by calling ...

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

... however, because it needs to reference Windows.Foundation.UniversalApiContract, I can't use it in a portable project.

So, does Android use anything like this? Is there a portable Xamarin function that I can use to get the ResolutionScale for Windows?

Or, am I going to have to put it in a UWP project and use dependency service to access it?

Tagged:

Answers

Sign In or Register to comment.