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" <ContentPage 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"
x:Class="Qwirkle.Pages.Credits" x:Class="Qwirkle.Pages.Credits"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Credits"> Title="Credits">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<Grid ColumnDefinitions="*, 4*,*" <Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0"> Margin="10, 0">
<Button Text="Go Back" <controls:GoBack></controls:GoBack>
Grid.Column="0"
Grid.Row="0"
HorizontalOptions="Start"
VerticalOptions="Center"
/>
<Label FontSize="Header" <Label FontSize="Header"
Grid.Column="1" Grid.Column="1"
Grid.Row="0" Grid.Row="0"

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

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

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

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