This question is locked. New answers and comments are not allowed.
There seems to be a bug where setting ItemContainerStyle on the RadListBox throws a XamlParseException. Below is code to replicate the problem:
xaml:
Code:
Is it possible to get a hotfix for this?
xaml:
<Grid> <Grid.Resources> <Style x:Key="ItemStyle" TargetType="ListBoxItem" /> </Grid.Resources> <StackPanel Orientation="Horizontal"> <StackPanel Width="100" Margin="5"> <telerik:RadButton Content="Add" Click="AddToList1" /> <telerik:RadListBox x:Name="List1" Height="100" /> </StackPanel> <StackPanel Width="100" Margin="5"> <telerik:RadButton Content="Add" Click="AddToList2" /> <telerik:RadListBox x:Name="List2" Height="100" ItemContainerStyle="{StaticResource ItemStyle}" /> </StackPanel> </StackPanel></Grid>Code:
public partial class MainPage : UserControl{ public MainPage() { InitializeComponent(); } private void AddToList1(object sender, RoutedEventArgs e) { List1.Items.Add("Item"); } private void AddToList2(object sender, RoutedEventArgs e) { List2.Items.Add("Item"); }}Is it possible to get a hotfix for this?