hi
Its possible to add user controls on the map ie... whether we can add text box button over xamwebmap.if any one know means pls guide me
Hi
I haven't used data template and attached properties. I'm quite new to silverlight so please recommend some reading about this.
Let me know if you have any questions about the code. I recommend reading up on DataTemplates and Attached Properties in Silverlight if you have not done so already, to aid in understanding.
-Graham
Please see if the attached sample I made helps you. It uses a template selection pattern to select the correct datatemplate based on the data associated with the map element. And it uses attached properties to associated a non double value with the map elements.
Its working fine. I need to put user control on particular element let say i have a plant map in that lot of boilers are there say b1,b2,b3. the thing is i want to put that user control at any one the boiler how can i do this. Say for example i want to load a data grid on boiler b1 to show its data at one time and on b2 at some other time.
Would this value template functionality fit the bill then: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/SL_DV_xamWebMap_Customize_xamWebMap_with_Value_Templates.html
You can put whatever controls you want in the value template, and they have access to bind to the "Value" attribute for the element.