edit of go back page / content view go back

test_old_branch
Jérémy Mouyon 1 year ago
parent f96d942f49
commit 17d19aa9ec

@ -2,17 +2,13 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Pages.Credits"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Credits">
<ScrollView>
<VerticalStackLayout>
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Button Text="Go Back"
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"
VerticalOptions="Center"
/>
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"

@ -9,12 +9,7 @@
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Button Text="Return"
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"
VerticalOptions="Center"
/>
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"

@ -8,7 +8,7 @@
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Button Text="Return"
<Button Text="Go Back"
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"

@ -2,14 +2,21 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Pages.Settings"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Settings">
<VerticalStackLayout>
<Label
Text="Settings"
FontSize="51"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
HorizontalOptions="Center"
Padding="50, 10"
Text="Settings"/>
</Grid>
<HorizontalStackLayout>
<Label
@ -33,11 +40,5 @@
HorizontalOptions="Start"
/>
<Button Text="Return"
Margin="200"
HorizontalOptions="Center"
VerticalOptions="End"
/>
</VerticalStackLayout>
</ContentPage>

@ -88,6 +88,9 @@
<Compile Update="Pages\Settings.xaml.cs">
<DependentUpon>Settings.xaml</DependentUpon>
</Compile>
<Compile Update="Views\GoBack.xaml.cs">
<DependentUpon>GoBack.xaml</DependentUpon>
</Compile>
<Compile Update="Views\ScoreboardLine.xaml.cs">
<DependentUpon>ScoreboardLine.xaml</DependentUpon>
</Compile>
@ -112,6 +115,9 @@
<MauiXaml Update="Pages\Settings.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\GoBack.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\ScoreboardLine.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.GoBack">
<Button Text="Go Back"
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"
VerticalOptions="Center"
/>
</ContentView>

@ -0,0 +1,9 @@
namespace Qwirkle.Views;
public partial class GoBack : ContentView
{
public GoBack()
{
InitializeComponent();
}
}
Loading…
Cancel
Save