Select to view content in your preferred language

How to collect data and use SketchGraphicLayer in WPF ?

576
0
10-17-2013 05:06 AM
BAUERNicolas
New Contributor
Hello,

I'm trying to develop a mobile application to collect point data in WPF with the SDK ArcGIS for Windows Mobile (in VS2008). I found lots of samples but they always were in WinForms or for Windows Mobile.

I have two big issues :

1) The map's property "CurrenMapAction" doesn't exist in WPF so I can't use the component AddVertexSketchTool. I know there are less possibilities in WPF than in WinForms but how I can get around this problem ?

2) The second point concerns the component SketchGraphicLayer, I can't add a SketchGraphicLayer to my map in WPF. The map's property MapGraphicLayers in WPF wants an UIElementCollection and no a SketchGraphicLayerCollection. Obviously if I use an UIElement instead of a SketchGraphicLayer, I have not the property Geometry to set a Point Geometry to my SketchGraphicLayer. How I can use this component in WPF ?

Is it possible to develop a mobile application to collect data in WPF currently or the SDK can't do that yet ?

Thank you for your help and yours answers and it would be very nice if you have some samples.

Best regards,

Nicolas
0 Kudos
0 Replies