Screen Size Problem in UWP

763
2
11-14-2017 10:08 PM
MANASJANARDANAN
New Contributor

We are facing issue with UWP application with ESRI Runtime 10.2.7.

We are creating a Zoom tool to a user defined area.The tool is working fine when runs with developer desktop machine.

But we side loaded the application to a lap top with a different screen size and when we draw polygon area to zoom in the map,  there is a shift to mouse point and the draw point (please see the screen capture). The shift will increase from top left corner to bottom right. Any settings need to done to handle the screen resolution? Please advice.

Here is the code part

var NewExtent = await MyMapView.Editor.RequestShapeAsync(Esri.ArcGISRuntime.Controls.DrawShape.Rectangle);

await MyMapView.SetViewAsync(NewExtent);

0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

ArcGIS Runtime SDK for .NET v10.2.7 is only certified and supported for building Windows 8.1 Store apps and not for Windows 10 UWP apps.

The reason is due to the problem you are seeing: with some combinations of screen resolution and scaling the underlying Microsoft Windows API reports the incorrect DPI.

For UWP development please use ArcGIS Runtime SDK for .NET v100.1.

Cheers

Mike

MANASJANARDANAN
New Contributor

thank you michael branscomb.I have changed my sdk from 10.2.7 to 100.1.0.

Now my app is working fine

0 Kudos