delete CM page and play page / add Gameboard page / edit styles for add the background color in VerticalStackLayout + scroll view → edit of AppShell after edit of pages directory

test_old_branch
jeremy-my 1 year ago
parent c472153503
commit fc5d386f57

@ -13,9 +13,9 @@
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />
<ShellContent
Title="Play"
ContentTemplate="{DataTemplate localPages:Play}"
Route="MainPage" />
Title="Gameboard"
ContentTemplate="{DataTemplate localPages:Gameboard}"
Route="Gameboard" />
<ShellContent
Title="Leaderboard"
ContentTemplate="{DataTemplate localPages:Leaderboard}"

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

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

@ -1,8 +1,8 @@
<?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.NewPage1"
Title="NewPage1">
x:Class="Qwirkle.Pages.Gameboard"
Title="Gameboard">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"

@ -1,12 +0,0 @@
<?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>

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

@ -22,14 +22,18 @@
<Grid RowDefinitions="Auto,Auto" ColumnDefinitions="0.5*,0.5*">
<Switch Grid.Column="1" HorizontalOptions="End" ThumbColor="AliceBlue"/>
<Switch
Grid.Column="1"
HorizontalOptions="End"
ThumbColor="AliceBlue"/>
<Slider Grid.Row="1"
Grid.ColumnSpan="2"
Margin="10"
Minimum="0"
Maximum="10"
Value="3" />
<Slider
Grid.Row="1"
Grid.ColumnSpan="2"
Margin="10"
Minimum="0"
Maximum="10"
Value="3" />
</Grid>

@ -66,28 +66,28 @@
<Compile Update="Pages\Leaderboard.xaml.cs">
<DependentUpon>Leaderboard.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\GameBoard.xaml.cs">
<DependentUpon>Gameboard.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">
<MauiXaml Update="Pages\Gameboard.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Settings.xaml">
<MauiXaml Update="Pages\Scoreboard.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Play.xaml">
<MauiXaml Update="Pages\Settings.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>

@ -415,4 +415,11 @@
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style>
<Style TargetType="VerticalStackLayout">
<Setter Property="BackgroundColor" Value="#efca85"/>
</Style>
<Style TargetType="ScrollView" >
<Setter Property="BackgroundColor" Value="#efca85"/>
</Style>
</ResourceDictionary>

Loading…
Cancel
Save