This question is locked. New answers and comments are not allowed.
I am binding a LocationCollection to an informationlayer itemssource but it does not work. I have not been able to find an example where this has been done without using codebehind.
I have a standard public property which I bind to:
and I bind to this property in the xaml
If I add to Items in code behind (i.e. informationLayer2.Items.Add(location1)), it works fine. If I add to the bound collection it does not work.
I've looked at the examples, but I can't see what is wrong.
Thanks
I have a standard public property which I bind to:
private LocationCollection _items; public LocationCollection Items { get { return _items; } set { _items = value; OnPropertyChanged("Items"); } }<telerik:InformationLayer Name="informationLayer2" Visibility="Visible" ItemTemplate="{StaticResource myitemtemplate}" ItemsSource="{Binding Items}"> <telerik:InformationLayer.DataMappings> <telerik:DataMapping FieldName="Location" ValueMember="Location" /> </telerik:InformationLayer.DataMappings> </telerik:InformationLayer>If I add to Items in code behind (i.e. informationLayer2.Items.Add(location1)), it works fine. If I add to the bound collection it does not work.
I've looked at the examples, but I can't see what is wrong.
Thanks