<!--http://w...content-available-to-author-only...x.com-->
<Window x:Class="WPF_CRUD_EFCodeFirst_Simple.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Wpf Example: CRUD EF Code First " Height="350
        " Width="600">

    <Grid>
        <!--Chia Form thành 4 hàng-->
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--Hàng 1-->
        <Label Grid.Row="0" Content="DEMO" FontWeight="Bold" HorizontalAlignment="Center"/>

        <!--Hàng 2-->
        <Grid Grid.Row="1">
            <!--Chia thành 2 hàng và 4 cột nhỏ-->
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Label Grid.Row="0" Grid.Column="0" Content="Employee Id:"/>
            <Label Grid.Row="1" Grid.Column="0" Content="First Name:"/>
            <Label Grid.Row="1" Grid.Column="2" Content="Last Name:"/>
            <Label Grid.Row="2" Grid.Column="0" Content="Birthday:"/>
            <Label Grid.Row="2" Grid.Column="2" Content="Dep Id:"/>

            <TextBox Grid.Row="0" Grid.Column="1" IsEnabled="False" Margin="5,5,5,5" FontFamily="Awe"/>
            <TextBox Grid.Row="1" Grid.Column="1"  Margin="5,5,5,5"/>
            <TextBox Grid.Row="1" Grid.Column="3"  Margin="5,5,5,5"/>

            <DatePicker Grid.Row="2" Grid.Column="1"  Margin="5,5,5,5"/>
            <ComboBox Grid.Row="2" Grid.Column="3"  Margin="5,5,5,5"/>
        </Grid>

        <!--Hàng 3-->
        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,10,0,10" HorizontalAlignment="Center">
            <Button Content="Insert;" Width="70" Height="35" Margin="0,0,40,0" />
            <Button Content="Update;" Width="70" Height="35" Margin="0,0,20,0" />
            <Button Content="Delete;" Width="70" Height="35" Margin="20,0,0,0" />
            <Button Content="Exit;" Width="70" Height="35" Margin="40,0,0,0" />
        </StackPanel>

        <!--Hàng 4-->
        <DataGrid Grid.Row="3" Margin="10,0,10,10">

        </DataGrid>
    </Grid>
</Window>
