<Window x:Class="KellermanSoftware.ContactsModule.Views.EditContactHistoryView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Contact History" ShowInTaskbar="False"
        WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow"
        Height="400" Width="300" MinHeight="400" MinWidth="300">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Label Content="Contact Type" VerticalAlignment="Center" />
        <ComboBox Grid.Column="1" ItemsSource="{Binding Path=ContactTypes}"
                  SelectedItem="{Binding Path=ContactType}" />
        <Label Grid.Row="1" Content="Note" VerticalAlignment="Top" />
        <TextBox Grid.Row="1" Grid.Column="1" Height="200" MaxLength="0"
                 TextWrapping="Wrap" AcceptsReturn="True"
                 VerticalScrollBarVisibility="Auto"
                 Text="{Binding Path=Note, UpdateSourceTrigger=PropertyChanged,
                                ValidatesOnDataErrors=True}"/>
        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" >
            <Button x:Name="saveButton" IsDefault="True" Content="Save" 
                    Click="SaveButton_Click" Command="{Binding Path=SaveCommand}" />
            <Button IsCancel="True" Content="Cancel" Margin="10,0,0,0" />
        </StackPanel>
    </Grid>
</Window>
