Création de la page d'accueil

master
Pauline PRADY 1 year ago
parent 4b4ca3a308
commit 47e753b1bb

@ -4,12 +4,13 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:mastermind" xmlns:local="clr-namespace:mastermind"
xmlns:pages="clr-namespace:mastermind.Pages"
Shell.FlyoutBehavior="Disabled" Shell.FlyoutBehavior="Disabled"
Title="mastermind"> Title="mastermind">
<ShellContent <ShellContent
Title="Home" Title="Home"
ContentTemplate="{DataTemplate local:MainPage}" ContentTemplate="{DataTemplate pages:Accueil}"
Route="MainPage" /> Route="pages:Accueil" />
</Shell> </Shell>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Pages.Accueil"
Title="Accueil">
<VerticalStackLayout>
<Label
Text="Bienvenue !"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

@ -0,0 +1,9 @@
namespace mastermind.Pages;
public partial class Accueil : ContentPage
{
public Accueil()
{
InitializeComponent();
}
}

@ -62,4 +62,10 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<MauiXaml Update="Pages\Accueil.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
</Project> </Project>

Loading…
Cancel
Save