<Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Tutorials WPF"
        WindowStyle="SingleBorderWindow"
        ResizeMode="CanMinimize"
        SizeToContent="WidthAndHeight">
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin" Value="5"/>
            <Setter Property="Padding" Value="3"/>
            <Setter Property="Width" Value="200"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Margin="10">
            <TextBlock Background="Black" Foreground="White" FontWeight="Heavy" Margin="6,0,6,0" Padding="5" >Using C1DataSource control</TextBlock>
            <Button Click="showSimpleBinding">Simple binding</Button>
            <Button Click="showServerSideFiltering">Server-side filtering</Button>
            <Button Click="showMasterDetailBinding">Master-detail binding</Button>
            <Button Click="showPaging">Paging</Button>
            <Button Click="showLargeDataSet">Large datasets: Virtual Mode</Button>
            <Button Click="showCustomColumns">Custom columns</Button>
        </StackPanel>
        <StackPanel Grid.Row ="1" Margin="10">
            <TextBlock Background="Black" Foreground="White" FontWeight="Heavy" Margin="6,0,6,0" Padding="5" >Programming in code</TextBlock>
            <Button Click="showDataSourcesInCode">Data sources in code</Button>
            <Button Click="showClientSideQuerying">Client-side querying: Live views</Button>
        </StackPanel>
        <StackPanel Grid.Row ="2" Margin="10">
            <TextBlock Background="Black" Foreground="White" FontWeight="Heavy" Margin="6,0,6,0" Padding="5" >Using MVVM pattern</TextBlock>
            <Button Click="showCategoryProductsView">MVVM</Button>
        </StackPanel>
    </Grid>
</Window>
