<Window x:Class="WpfExamples.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:local="clr-namespace:WpfExamples"
        Title="OxyPlot WPF/XAML examples" Height="800" Width="480" Icon="OxyPlot_64.png">
    <ListBox 
        ItemsSource="{Binding Examples}" 
        BorderThickness="0" 
        ScrollViewer.CanContentScroll="False" 
        ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
        MouseDoubleClick="ListBoxMouseDoubleClick">
        <ListBox.ItemTemplate>
            <DataTemplate DataType="{x:Type local:Example}">
                <Grid Margin="6">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="128"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Image Source="{Binding Thumbnail}" Width="120" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                    <StackPanel Grid.Column="1" VerticalAlignment="Top">
                        <TextBlock Text="{Binding Title}" FontWeight="Bold" FontSize="14"/>
                        <TextBlock Text="{Binding Description}" TextWrapping="Wrap"/>
                    </StackPanel>
                </Grid>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
</Window>
