1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <Window x:Class="projet3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<DataGrid x:Name="DGform" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="139,10,0,0" Height="130" Width="266" Cursor="Arrow" >
<DataGrid.Columns>
<DataGridCheckBoxColumn x:Name="DGCBCnom" Binding="{Binding ElementName=TBnom, Mode=OneWay}" ClipboardContentBinding="{x:Null}" Header="Nom" MinWidth="100" SortDirection="Descending"/>
<DataGridCheckBoxColumn x:Name="DGCBCpre" Binding="{Binding ElementName=TBpren, Mode=OneWay}" ClipboardContentBinding="{x:Null}" Header="Prénom" MinWidth="100" SortDirection="Descending"/>
<DataGridCheckBoxColumn x:Name="DGCBCage" Binding="{Binding ElementName=CBage, Mode=OneWay}" ClipboardContentBinding="{x:Null}" Header="Age" MinWidth="70" SortDirection="Descending"/>
</DataGrid.Columns>
<DataGrid.Effect>
<DropShadowEffect/>
</DataGrid.Effect>
</DataGrid>
<Button x:Name="BTadd" Content="+" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="34,24,0,0" Click="BTadd_Click"/>
<Button x:Name="BTdel" Content="-" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="34,120,0,0" Click="BTdel_Click"/>
<Button x:Name="BTmodif" Content="Modifier" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="33,71,0,0" IsEnabled="False"/>
<Button x:Name="BTferm" Content="Fermer" HorizontalAlignment="Left" VerticalAlignment="Top" Width="168" Margin="185,289,0,0" Click="BTferm_Click"/>
<Grid x:Name="GDcache" Margin="0,-16,0,0" Visibility="Hidden">
<TextBox x:Name="TBnom" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" Text="Nom" VerticalAlignment="Top" Width="103" Margin="139,179,0,0"/>
<TextBox x:Name="TBpren" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" Text="Prénom" VerticalAlignment="Top" Width="107" Margin="298,179,0,0"/>
<ComboBox x:Name="CBage" HorizontalAlignment="Left" VerticalAlignment="Top" Width="171" Height="24" Margin="183,230,0,0" IsSynchronizedWithCurrentItem="True" Loaded="CBage_Loaded" SelectionChanged="CBage_SelectionChanged" Cursor="Arrow" Text="Veuillez entrer votre âges" IsEditable="True" IsReadOnly="True" />
<Button x:Name="BTajout" Content="Ajouter" HorizontalAlignment="Left" VerticalAlignment="Top" Width="171" Margin="183,275,0,0" IsEnabled="False" RenderTransformOrigin="1.667,0.7" Click="BTajout_Click"/>
</Grid>
</Grid>
</Window> |
Partager