hi
i have added image using symbol element. now i want to change the image based on some value that is want to display different images based on value. How to change the source of the image. i have done like in the following code but i cant access the image using the name.
<igMap:MapLayer x:Name="SymbolLayer"> <igMap:MapLayer.ValueTemplate> <DataTemplate> <Image Width="50" Height="50" x:Name="img1" Source="images/red.png"/> </DataTemplate> </igMap:MapLayer.ValueTemplate> </igMap:MapLayer>
i cant able to access the image using name(img1).
thanks in advance
oniv
reaching into the datatemplate to change the value of the image isnt the correct way to do this operation. Instead you should try to bind the image's source to some underlying data, and then when you need to change the image, instead change the underlying data. See: http://forums.infragistics.com/forums/p/37528/218358.aspx#218358 and see if it answers your questions about how to accomplish this kind of task.
-Graham