ajout élément sur la vue planification

UI_Windows
Nicolas MAYE 2 years ago
parent 00be26cd44
commit 0eaba5c069

@ -13,11 +13,11 @@
<StackLayout BackgroundColor="{StaticResource Gray900}" HorizontalOptions="StartAndExpand" VerticalOptions="FillAndExpand"> <StackLayout BackgroundColor="{StaticResource Gray900}" HorizontalOptions="StartAndExpand" VerticalOptions="FillAndExpand">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Primary}" TextColor="{StaticResource Yellow300Accent}" Padding="20" Margin="20"></Button> <Button Text="ACCUEIL" BackgroundColor="{StaticResource Primary}" TextColor="{StaticResource Yellow300Accent}" Padding="20" Margin="20" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button> <Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button> <Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button> <Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button> <Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_Clicked"></Button>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>

@ -1,3 +1,5 @@
using Microsoft.Maui.Graphics.Text;
namespace IHM.Desktop; namespace IHM.Desktop;
public partial class Dashboard : ContentPage public partial class Dashboard : ContentPage
@ -6,4 +8,9 @@ public partial class Dashboard : ContentPage
{ {
InitializeComponent(); InitializeComponent();
} }
private void Button_Clicked(object sender, EventArgs e)
{
Navigation.PushAsync(new Planification());
}
} }

@ -3,10 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Planification" x:Class="IHM.Desktop.Planification"
Title="Planification"> Title="Planification">
<VerticalStackLayout> <StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<Label
Text="Welcome to .NET MAUI!" <StackLayout BackgroundColor="{StaticResource Gray900}" VerticalOptions="Start">
VerticalOptions="Center" <Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" Padding="10" Margin="10" HorizontalOptions="End"></Button>
HorizontalOptions="Center" /> </StackLayout>
</VerticalStackLayout>
<StackLayout BackgroundColor="{StaticResource Gray900}" HorizontalOptions="StartAndExpand" VerticalOptions="FillAndExpand">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Yellow300Accent}" Padding="20" Margin="20" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Primary}" Padding="20" Margin="20" ></Button>
</StackLayout>
</StackLayout>
</ContentPage> </ContentPage>
Loading…
Cancel
Save