<Window x:Class="ListBoxExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:ListBoxExample"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Window.Resources>
        <DataTemplate x:Key="ConfectioneryDataTemplate">
            <TextBlock Text="{Binding Name}"/>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <telerik:RadListBox x:Name="CartLineItems" 
                            ItemsSource="{Binding LineItems}" 
                            SelectedItem="{Binding SelectedArticle, Mode=TwoWay}"
                            ItemTemplate="{StaticResource ConfectioneryDataTemplate}" 
                            VerticalAlignment="Stretch"
                            HorizontalAlignment="Stretch" 
                            Background="LightGray">
        </telerik:RadListBox>
        <telerik:RadButton Content="Test" HorizontalAlignment="Center" VerticalAlignment="Bottom" Click="RadButton_Click"/>

    </Grid>
</Window>
