ajout élément sur la vue planification

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

@ -17,7 +17,7 @@
<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 Yellow100Accent}" Padding="20" Margin="20"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_Clicked"></Button>
</StackLayout>
</StackLayout>

@ -1,3 +1,5 @@
using Microsoft.Maui.Graphics.Text;
namespace IHM.Desktop;
public partial class Dashboard : ContentPage
@ -6,4 +8,9 @@ public partial class Dashboard : ContentPage
{
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"
x:Class="IHM.Desktop.Planification"
Title="Planification">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
<StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<StackLayout BackgroundColor="{StaticResource Gray900}" VerticalOptions="Start">
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" Padding="10" Margin="10" HorizontalOptions="End"></Button>
</StackLayout>
<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>
Loading…
Cancel
Save