<UserControl x:Class="KellermanSoftware.ContactsModule.Views.ContactsView"
             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"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <GroupBox Margin="5" Header="Contacts">
            <DockPanel>
                <Grid DockPanel.Dock="Bottom" Margin="5,0,5,0">
                    <Button Content="Add" HorizontalAlignment="Left"
                            Command="{Binding Path=AddContactCommand}" />
                    <Button Content="Edit" HorizontalAlignment="Center"
                            Command="{Binding Path=EditContactCommand}" />
                    <Button Content="Delete" HorizontalAlignment="Right"
                            Command="{Binding Path=DeleteContactCommand}" />
                </Grid>
                <ListBox Margin="5" ItemsSource="{Binding Path=Contacts}" 
                         DisplayMemberPath="ContactName" />
            </DockPanel>
        </GroupBox>
    </Grid>
</UserControl>
