<Window x:Class="TutorialsWPF.DataSourcesInCode"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DataSourcesInCode" Height="507" Width="945">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="394*" />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <!-- Data binding of the following controls is specified in code. -->
        <StackPanel Orientation="Horizontal" Margin="4">
            <TextBlock Text="Category: " VerticalAlignment="Center"/>
            <ComboBox HorizontalAlignment="Left" Name="comboBox1" Width="221" SelectionChanged="comboBox1_SelectionChanged" />
        </StackPanel>
        <DataGrid Grid.Row="1" AutoGenerateColumns="True" Name="dataGrid1" Margin="4,0" />
        <Button Grid.Row="2" Margin="4" Content="Save Changes" Height="23" HorizontalAlignment="Right" Name="btnSaveChanges" Width="102" Click="btnSaveChanges_Click" />
    </Grid>
</Window>
