<Window x:Class="WorldStatisticsDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" 
        xmlns:pt="clr-namespace:PropertyTools.Wpf;assembly=PropertyTools.Wpf" Title="World statistics" Height="720" Width="1200">
    <DockPanel>
        <!--<TextBlock DockPanel.Dock="Bottom" Text="Data from gapminder.org"/>-->
        <DockPanel DockPanel.Dock="Right" Margin="8" Width="500">
            <ComboBox DockPanel.Dock="Top" ItemsSource="{Binding Countries.Values}" SelectedItem="{Binding SelectedCountry}"/>
            <pt:ItemsGrid Margin="0 8 0 0" ItemsSource="{Binding SelectedCountry.Statistics}" CanInsert="False" CanDelete="False"/>
        </DockPanel>
        <Slider DockPanel.Dock="Bottom" Value="{Binding Year}" Minimum="1800" Maximum="2009" SmallChange="1" LargeChange="10" Margin="10" TickPlacement="Both" TickFrequency="25"/>
        <Grid>
            <TextBlock Text="{Binding Year}" Foreground="#20000000" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="200" FontWeight="Bold"/>
            <oxy:PlotView Model="{Binding PlotModel}" Background="Transparent"/>
        </Grid>
        
    </DockPanel>
</Window>
