I built a sample app to test and found that clearing the items always updates correctly, however when I add items they do not show until I zoom or add another item at a later time (in which case the older item shows but the new item does not.)
Even when adding multiple items at the same time they do not show up on the map until another item is added at a later time.
If I change my DataTemplate to wrapper the UserControl in a Grid that sets the MapLayer.Location but is defined as a local resource the items appear immediately.
In the code below, "HintTemplate" is the DataTemplate that appears immediately, while "HintTemplate2" appears only after a later change to the collection or a Zoom.
<
DataTemplate
x:Key
=
"HintTemplate"
>
<
Grid
telerik:MapLayer.Location
=
"{Binding Location}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
>
<
local:Hint
/>
</
Grid
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"HintTemplate2"
>
<
local:Hint
/>
</
DataTemplate
>
I'll use the wrapper approach for now to work around my issue, but would really appreciate it if someone could tell me what I've done wrong.
The sample app zips up to 17Kbytes, so I can easily provie it if that will help explain my issue.
Thanks,
Ian Barnes