Add page directory and xaml/cs

test_old_branch
Jérémy Mouyon 1 year ago
parent ebed4c9c2f
commit f4a530ba1d

@ -4,12 +4,29 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Qwirkle"
xmlns:localPages="clr-namespace:Qwirkle.Pages"
Shell.FlyoutBehavior="Disabled"
Title="Qwirkle">
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />
<TabBar>
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />
<ShellContent
Title="Play"
ContentTemplate="{DataTemplate localPages:Play}"
Route="MainPage" />
<ShellContent
Title="Leaderboard"
ContentTemplate="{DataTemplate localPages:Leaderboard}"
Route="Leaderboard" />
<ShellContent
Title="Scoreboard"
ContentTemplate="{DataTemplate localPages:Scoreboard}"
Route="Scoreboard" />
<ShellContent
Title="Settings"
ContentTemplate="{DataTemplate localPages:Settings}"
Route="Settings" />
</TabBar>
</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="Qwirkle.Pages.Leaderboard"
Title="Leaderboard">
<VerticalStackLayout>
<Label
Text="Leaderboard"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

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

@ -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="Qwirkle.Pages.Play"
Title="Play">
<VerticalStackLayout>
<Label
Text="Play"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

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

@ -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="Qwirkle.Pages.Scoreboard"
Title="Scoreboard">
<VerticalStackLayout>
<Label
Text="Scoreboard"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

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

@ -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="Qwirkle.Pages.Settings"
Title="Settings">
<VerticalStackLayout>
<Label
Text="Settings"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

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

@ -62,4 +62,34 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Pages\Leaderboard.xaml.cs">
<DependentUpon>Leaderboard.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\Scoreboard.xaml.cs">
<DependentUpon>Scoreboard.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\Settings.xaml.cs">
<DependentUpon>Settings.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\Play.xaml.cs">
<DependentUpon>Play.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Pages\Leaderboard.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Scoreboard.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Settings.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Play.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
</Project>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Loading…
Cancel
Save