<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="GlobalVariableViewWPF.GlobalVariableViewWPF" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:globalvariableviewwpf="clr-namespace:GlobalVariableViewWPF;assembly=GlobalVariableViewWPF">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="50" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Grid Row="0" VerticalAlignment="Center" Margin="3">
      <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition Width="8" />
        <ColumnDefinition />
        <ColumnDefinition Width="8" />
        <ColumnDefinition />
        <ColumnDefinition Width="8" />
        <ColumnDefinition />
        <ColumnDefinition Width="8" />
        <ColumnDefinition />
      </Grid.ColumnDefinitions>
      <Button Name="btnUpdate" Grid.Column="0" Padding="4" Content="Update" Click="btnUpdate_Click" />
      <Button Name="btnAdd" Grid.Column="2" Padding="4" Content="Add" Click="btnAdd_Click" />
      <Button Name="btnRemove" Grid.Column="4" Padding="4" Content="Remove" Click="btnRemove_Click" />
    </Grid>
    <DataGrid Name="gvGrid" Grid.Row="1" Grid.Column="1" CanUserAddRows="False" IsReadOnly="False" AutoGenerateColumns="False" CanUserDeleteRows="True" CanUserSortColumns="False" CanUserResizeRows="False" SelectionUnit="CellOrRowHeader" SelectionMode="Single" FontFamily="Microsoft Sans Serif" FontSize="12" Margin="5" ItemsSource="{Binding Path=GlobalVariableList}">
      <DataGrid.Columns>
        <DataGridTextColumn IsReadOnly="False" Header="Name" Width="*" FontFamily="Microsoft Sans Serif" Binding="{Binding GVName}" />
        <DataGridTextColumn IsReadOnly="False" Header="Value" Width="2*" FontFamily="Microsoft Sans Serif" Binding="{Binding GVValue}" />
      </DataGrid.Columns>
    </DataGrid>
  </Grid>
</UserControl>