Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
How to change the image source in code behind that loaded using symbol
posted

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

Parents
No Data
Reply Children
No Data