Sorry if this is a repeat, I could not find a similar problem on the forums.
I am having trouble using the 2011.3.1116.40 version of the telerik WPF controls. I have a WPF Map InformationLayer that has it's ItemsSource bound to an ObservableCollection, and what I was seeing is that changes to the collection were not showing up on-screen until I zoomed in or out.
My DataTemplate for the InformationLayer contains a UserControl that holds the content and defines the MapLayer.Location property, and this seems to be causing the problem.
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