I have several questions on this one:
1. Again, I can't get the example code to work. I know about that problem with the order of the worldrect code and fixed that. But I am not seeing an image show up.
2. I don't understand the mapping between the value property in the element and the data template in the XAML. Is there a way to add and delete an image using only C#? I would like to dynamically add and delete images at high speed on the fly.
thanks,
Roger
RogerFeeley said:I am not seeing an image show up.
it worked okay for me. did you copy a file called pizza.png to your ClientBin folder? i have attached the sample project i used, perhaps it will work for you...
RogerFeeley said:I don't understand the mapping between the value property in the element and the data template in the XAML
The Value property can be displayed anywhere in the ValueTemplate, e.g.
<DataTemplate> <TextBlock Text="{Binding Value}" /></DataTemplate>
in order for the ValueTemplate to be displayed, a value must be set on each MapElement.
RogerFeeley said:Is there a way to add and delete an image using only C#? I would like to dynamically add and delete images at high speed on the fly.
unfortunately not at this time; at least not through the map's API.