So I'm working on a project and I want to have it so I can map a user control to the xamMap and have the values on the control update dynamically. Say I map 3 different weather stations on the map and I want their heat readings to update when they change. Would I need to re-render the map with a new version of the control when the values change or can I just have it mapped once and have the user control operate by itself (I hope that makes sense).
I can provide some samples tomorrow if that helps clarify.
Thanks
Matt
Hi MattMacd,
Would you, please, take a look at this sample application () which uses xamMap together with XamSegmentedDisplay to show USA's different time zones with current time (upon click on Time). The thing that has to be done in order to get it working is to add Infragistics dlls.
Please, let me know if this is the kind of scenario you aim to achieve and feel free to post back if you need additional information.
Best Regards,Milana Zhileva
So this is very close to what I want to do, but I want to assign the controls coordinates for the map instead of using the metadata from the shapefile. I'm trying to create a new MapElement so that it will place it correctly, and the control is showing up. But this is where I'm getting confused on how to data bind the values to the control. Should I use something like the dictionary from the example?
I ended up solving the problem by subclassing the MapElement class and setting the data context when I created the new element. Thanks for the help though!
Hi Matt,
Please take a look at these posts: http://community.infragistics.com/forums/p/43456/239043.aspx#239043 and http://forums.infragistics.com/forums/p/52090/271465.aspx
MapElement class derives from DependencyObject and you can use that to set attached properties and data bind them later. Also each MapElement's ValueTemplate object has its DataContext set to the respective MapElement.
Please let me know if that works for you.
Regards,
Ivan Kotev