Bind markers to collection of custom class instances

2716
1
08-26-2015 06:23 AM
Labels (1)
NicolasChaigneaud
New Contributor

Hi everybody,

I'm working on a c#/wpf application that has one custom class corresponding to places.

This class named ClassPlace contains 2 properties :

- double ​lat

- double lng

I have an observable collection of ClassPlace and an ArcGis map. I'd like to sync this collection with markers on the map : foreach each instance of ClassPlace, I need to have a marker on the map at the corresponding latitude and longitude. And I need its postion to be updated on the map when latitude or longitude are modified...

Do you know how I could implement this ? I'm not looking for a complete solution but just a global approch.

For information, I absolutely need to use my c# collection as data source.

IT was very easy to do with the sdk of bing maps but I did not find with ArcGis SDK...

Thanks in advance for your suggestions.

Have a nice day.

0 Kudos
1 Reply
nakulmanocha
Esri Regular Contributor

If you are still looking for a way on how to do binding you could use these sample as an example

ArcGIS Runtime SDK for WPF Samples

Using GraphicsSource Online

0 Kudos