user control bwat + carte page d'accueil + autres trucs mais je sais plus

merge-requests/2/head
Mathilde JEAN 3 years ago
parent 3e76412372
commit 411f9638b9

@ -0,0 +1,20 @@
<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" Background="AliceBlue" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20" FontSize="30" FontWeight="Bold" FontFamily="Poppins" Foreground="PowderBlue"/>
<Button x:Name="add" HorizontalAlignment="Right" VerticalAlignment="Center" Content="x" BorderBrush="AliceBlue" BorderThickness="2" Background="PowderBlue" Width="50" Height="50" FontFamily="Poppins" FontSize="25" Foreground="AliceBlue"></Button>
</DockPanel>
<DockPanel Background="AliceBlue">
<TextBlock DockPanel.Dock="Top" Text="Shark information :" Margin="15" FontSize="18" Foreground="CadetBlue"/>
<local:UserControlBoite/>
<local:UserControlBoite/>
</DockPanel>
</DockPanel>
</Window>

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WpfApp1
{
/// <summary>
/// Logique d'interaction pour AddAShark.xaml
/// </summary>
public partial class AddAShark : Window
{
public AddAShark()
{
InitializeComponent();
}
}
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

@ -38,9 +38,7 @@
<TextBlock Text="CSHARK" Background="AliceBlue" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20" FontSize="30" FontWeight="Bold" FontFamily="Poppins" Foreground="PowderBlue"/> <TextBlock Text="CSHARK" Background="AliceBlue" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20" FontSize="30" FontWeight="Bold" FontFamily="Poppins" Foreground="PowderBlue"/>
<Button x:Name="add" HorizontalAlignment="Right" VerticalAlignment="Center" Content="+" BorderBrush="AliceBlue" BorderThickness="2" Background="PowderBlue" Width="50" Height="50" FontFamily="Poppins" FontSize="25" Foreground="AliceBlue"></Button> <Button x:Name="add" HorizontalAlignment="Right" VerticalAlignment="Center" Content="+" BorderBrush="AliceBlue" BorderThickness="2" Background="PowderBlue" Width="50" Height="50" FontFamily="Poppins" FontSize="25" Foreground="AliceBlue"></Button>
</DockPanel> </DockPanel>
<Grid Background="AliceBlue"> <Image Source="U:\IHM\repos\WpfApp1\WpfApp1\Images\cartemaismieuxman.png"/>
<Image Source=""/>
</Grid>
</DockPanel> </DockPanel>

@ -0,0 +1,17 @@
<UserControl x:Class="WpfApp1.UserControlBoite"
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"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="Nom" FontSize="50" Foreground="AliceBlue" TextAlignment="Center" Background="PowderBlue" Grid.Row="0"/>
<TextBox Grid.Row="1"/>
</Grid>
</UserControl>

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApp1
{
/// <summary>
/// Logique d'interaction pour UserControlBoite.xaml
/// </summary>
public partial class UserControlBoite : UserControl
{
public UserControlBoite()
{
InitializeComponent();
}
}
}

@ -0,0 +1,12 @@
<Window x:Class="WpfApp1.Window2"
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="Window2" Height="450" Width="800">
<Grid>
</Grid>
</Window>

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WpfApp1
{
/// <summary>
/// Logique d'interaction pour Window2.xaml
/// </summary>
public partial class Window2 : Window
{
public Window2()
{
InitializeComponent();
}
}
}
Loading…
Cancel
Save