This question is locked. New answers and comments are not allowed.
I am trying to bind the location box in the RADMAP demo to a web service call, I'm getting this error "A value of type 'Location' cannot be added to a collection or dictionary of type 'UIElementCollection'."
Here is the XAML, I get a blue squiggly line under it and it fails when I run it.
Here is the XAML, I get a blue squiggly line under it and it fails when I run it.
| <ListBox x:Name="LocationBox" SelectionChanged="LocationBox_SelectionChanged" ItemContainerStyle="{StaticResource lv-ListBoxItem}" Background="Transparent" BorderBrush="Transparent"> |
| <ListBox.ItemTemplate> |
| <DataTemplate> |
| <StackPanel Orientation="Vertical"> |
| <mapNamespace:Location Description="{Binding RepName}" Latitude="{Binding Latitude}" Longitude="{Binding Longitude}"/> |
| </StackPanel> |
| </DataTemplate> |
| </ListBox.ItemTemplate> |
| </ListBox> |