Last Updated: 08 Oct 2014 14:34 by ADMIN
Created by: Alexi
Comments: 1
Category: ListBox
Type: Bug Report
Currently I´m testing the latest versión of Telerik Silverlight and the RadListBox control is crashing when binding VisualizationLayer items from RadMap control. It doesn´t show error information, the screen is withe.
This is the code I´m using:


    <converters:ItemsMapToLayerStringConverter  x:Key="ItemsMapToLayerStringConverter" />
    <RowDefinition Height="*"/>
    <RowDefinition Height="Auto"/>
  <telerik:RadMap x:Name="Map">
      <telerik:OpenStreetMapProvider />
  <telerik:RadListBox ItemsSource="{Binding ElementName=Map, Path=Items, Converter={StaticResource ItemsMapToLayerStringConverter}}" Gid.Row="1" >
        <TextBlock Text="{Binding Tag}"/>


public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  var mapa = value as RadMap;
  var capas = mapa.ChildrenOfType<VisualizationLayer>().ToList();
  return capas;