Ammélioration de l'interface

Navigator
Hugo LIVET 2 years ago
parent c69fe4a929
commit 7f97afa39c

@ -92,7 +92,37 @@
<Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="VerticalAlignment" Value="Center"/>
</Style> </Style>
<SolidColorBrush x:Key="CouleurPrincipale" Color="Black"/> <SolidColorBrush x:Key="CouleurPrincipale" Color="Blue"/>
<Style x:Key="BoutonMain" TargetType="Button">
<Setter Property="Height" Value="40"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Margin" Value="10,0,0,0"/>
<Setter Property="Padding" Value="20"/>
<Setter Property="Background" Value="{StaticResource CouleurPrincipale}"/>
<Style.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="20,0,0,20"/>
</Style>
</Style.Resources>
<Style.Triggers>
<Trigger Property="IsPressed" Value="False"><!--True pour que ca marche-->
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="White"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
</Application.Resources> </Application.Resources>
</Application> </Application>

@ -5,6 +5,8 @@ using System.Data;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace IHM namespace IHM
{ {
@ -14,5 +16,7 @@ namespace IHM
public partial class App : Application public partial class App : Application
{ {
public Navigator Navigator { get; private set; } = new Navigator(); public Navigator Navigator { get; private set; } = new Navigator();
} }
} }

@ -20,8 +20,13 @@
<Image Source="images/logo.png" Margin="10" Grid.Column="0" Grid.Row="0"/> <Image Source="images/logo.png" Margin="10" Grid.Column="0" Grid.Row="0"/>
<StackPanel Grid.Column="0" Grid.Row="1"> <StackPanel Grid.Column="0" Grid.Row="1">
<Button Content="Tableau de bord"/> <Button Content="Tableau de bord" Style="{StaticResource BoutonMain}"/>
<Button Content="Tableau de bord" Style="{StaticResource BoutonMain}"/>
<Button Content="Tableau de bord" Style="{StaticResource BoutonMain}"/>
<Button Content="Tableau de bord" Style="{StaticResource BoutonMain}"/>
<Button Content="Tableau de bord" Style="{StaticResource BoutonMain}"/>
</StackPanel> </StackPanel>
<ContentControl x:Name="contentControl" <ContentControl x:Name="contentControl"

Loading…
Cancel
Save