You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
6.2 KiB

<Window x:Class="WpfApp1.AddAShark"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="AddAShark" Height="450" Width="800">
<DockPanel>
<DockPanel x:Name="Button" DockPanel.Dock="Top">
<TextBlock Text="ADD A SHARK" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20" FontSize="30" FontWeight="Bold" FontFamily="Candara Light" Foreground="{StaticResource Couleur2}"/>
<Button x:Name="exit" Style="{StaticResource Button1}" HorizontalAlignment="Right" VerticalAlignment="Center" Content="x" Width="50" Height="50" FontSize="25" Click="exit_Click"></Button>
</DockPanel>
<DockPanel Background="{StaticResource Couleur1}">
<TextBlock DockPanel.Dock="Top" Text="Shark information :" Margin="15" FontSize="18" Foreground="{StaticResource Couleur3}"/>
<Grid Width="800">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<local:UserControlBoite Grid.Column="0" Grid.Row="0" Message="Nom" x:Name="name"/>
<local:UserControlBoite Grid.Column="0" Grid.Row="1" Message="Nom scientifique" x:Name="sciName"/>
<local:UserControlBoite Grid.Column="0" Grid.Row="2" Message="Description" x:Name="desc"/>
<local:UserControlBoite Grid.Column="0" Grid.Row="3" Message="Lien de la photo" x:Name="lienPhoto"/>
<local:UserControlBoite Grid.Column="0" Grid.Row="4" Message="Lien de la vidéo" x:Name="lienVid"/>
<local:UserControlBoite Grid.Column="1" Grid.Row="0" Message="Lien de la map" x:Name="lienMap"/>
<local:UserControlBoite Grid.Column="1" Grid.Row="1" Message="Fun fact (optionnel)" x:Name="funny"/>
<Grid Grid.Column="1" Grid.Row="2" ShowGridLines="True" Width="320" Height="19" VerticalAlignment="Top" Background="{StaticResource Couleur2}">
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="Zone(s) d'habitation" HorizontalAlignment="Center" Grid.Row="0" Foreground="{StaticResource Couleur3}"/>
</Grid>
<Grid Grid.Column="1" Grid.Row="2" Margin="0,19,0,0" Width="320" Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<CheckBox Content="Océan Atlantique" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="40,0,0,0" x:Name="Atla"/>
<CheckBox Content="Océan Arctique" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Margin="0,0,20,0" x:Name="Arct"/>
<CheckBox Content="Océan Indien" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="40,0,0,0" x:Name="Indi"/>
<CheckBox Content="Océan Pacifique" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Margin="0,0,20,0" x:Name="Paci"/>
</Grid>
<Grid Grid.Column="1" Grid.Row="3" ShowGridLines="True" Width="320" Height="19" VerticalAlignment="Top" Background="{StaticResource Couleur2}" Margin="40,0,40,0">
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="Conservation" HorizontalAlignment="Center" Grid.Row="0" Foreground="{StaticResource Couleur3}"/>
</Grid>
<Grid x:Name="radioButtons" Grid.Column="1" Grid.Row="3" Margin="40,19,40,0" Width="320" Background="White">
<Grid.ColumnDefinitions >
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<RadioButton Style="{StaticResource RadioGaga}" Content="EX" Grid.Column="0" Grid.Row="0" x:Name="ex"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="EW" Grid.Column="1" Grid.Row="0" x:Name="ew"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="CR" Grid.Column="2" Grid.Row="0" x:Name="cr"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="EN" Grid.Column="3" Grid.Row="0" x:Name="en"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="VU" Grid.Column="4" Grid.Row="0" x:Name="vu"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="NT" Grid.Column="0" Grid.Row="1" x:Name="nt"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="LC" Grid.Column="1" Grid.Row="1" x:Name="lc"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="DD" Grid.Column="2" Grid.Row="1" x:Name="dd"/>
<RadioButton Style="{StaticResource RadioGaga}" Content="NE" Grid.Column="3" Grid.Row="1" x:Name="ne"/>
</Grid>
<Button Style="{StaticResource Button1}" Grid.Column="1" Grid.Row="5" Content="Submit" Margin="15" Width="100" x:Name="submit" Click="submit_Click"/>
</Grid>
</DockPanel>
</DockPanel>
</Window>