Would like to use xamMap within a ElementHost control on a windows form control. Therefore I don't have Xaml code file or Designtime capabilities.
Can I get design time capabilities?
Any ecample code for full C# code based implementation of a XamMap control.
All I want to do display is at least one (maybe a couple of shapefiles) and load a dataset from a web service with lat longs and place points of interest and respond to clicking on POI. will need zoom and panning capabilities.
Thanks
Hello Ahrensd,
I would suggest you to add xamMap to a UserControl and add the UserControl to the ElementHost. You can also expose properties of the xamMap control to the UserControl.
The following blog post describes how to host a WPF control in a windows forms application. This blog post also describes how to expose WPF properties.
http://blogs.infragistics.com/wpf/articles/hosting-a-wpf-control-in-a-windows-forms-application.aspx
The following topics have some examples on how to use xamMap control.
http://help.infragistics.com/NetAdvantage/WPFDV/2010.3/CLR4.0/?page=SL_DV_Developers_Guide_xamWebMap.html
http://community.infragistics.com/blogs/mihail_mateev/archive/2010/08/06/using-infragistics-xammap-silverlight-wpf-control-with-sql-server-spatial.aspx
Please let me know if you have any questions on this matter.
Asma,
Yes, this gives the basic recipe. And I've been able to host the control in a ElementHost control. However so far I can't get the shapefile to be displayed. and I was hoping also on some guidance on the best way of loading some 5000 points of intetest and making them clickable.