<Window x:Class="WpfRibbonApplication1.allcontacts"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="All Contacts" Height="445" Width="576" MinHeight="367" MinWidth="489" ResizeMode="NoResize">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF242323" Offset="0" />
                <GradientStop Color="#FF625353" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <DataGrid AutoGenerateColumns="False" Height="265" HorizontalAlignment="Left" Margin="12,51,0,0" Name="dataGrid1" VerticalAlignment="Top" Width="530" ItemsSource="{Binding Path=all}" CanUserResizeColumns="False" MinHeight="300" MinWidth="400">
            <DataGrid.Columns>
               
                <DataGridTextColumn Header="Name" Width="100" Binding="{Binding Path=name}" IsReadOnly="True">
                    
                </DataGridTextColumn>
                <DataGridTextColumn Header="Email" Width="120" Binding="{Binding Path=email}" IsReadOnly="True">
                    
                </DataGridTextColumn>
                <DataGridTextColumn Header="Phone" Width="120" Binding="{Binding Path=phone}"></DataGridTextColumn>
                <DataGridTextColumn Header="Address" Width="*" Binding="{Binding Path=address}"></DataGridTextColumn>
            </DataGrid.Columns>
            </DataGrid>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="238,22,0,0" Name="textBlock1" Text="All Contacts" VerticalAlignment="Top" Foreground="#FFF5ECEC" />
        <Button Content="Close" Height="33" HorizontalAlignment="Left" Margin="458,363,0,0" Name="button1" VerticalAlignment="Top" Width="77" Click="button1_Click" />
    </Grid>
</Window>
