<Window 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"		
        Title="Chapitre 5 - DataGrid - XML" 
        Width="520" 
        Height="300"  
		BorderBrush="DodgerBlue"
		>

    <Grid>		
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">

<DataGrid
	Name="Datagrid_Machines"
	Width="Auto"
	Height="Auto"
	Margin="2,2,2,2"
	ColumnWidth="150"
	ItemsSource="{Binding}"
	SelectionMode="Extended">
				  
	<DataGrid.Columns>
		<DataGridTextColumn Binding="{Binding Nom}" Header="Nom"/>
		<DataGridTextColumn Binding="{Binding Status}" Header="Status"/>
		<DataGridTextColumn Binding="{Binding Ville}" Header="Ville"/>
	</DataGrid.Columns>
</DataGrid>

</StackPanel>
           

    </Grid>
</Window>        