Fin de la page connexion, ajout contentview

master
Céleste BARBOSA 1 year ago
parent e0be2a33a2
commit 418fced31f

@ -10,5 +10,5 @@
<ShellContent <ShellContent
Title="Connexion" Title="Connexion"
ContentTemplate="{DataTemplate pages:connexionPage}" /> ContentTemplate="{DataTemplate pages:ConnexionPage}" />
</Shell> </Shell>

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<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="mastermind.Pages.connexionPage" xmlns:Views="clr-namespace:mastermind.Views"
x:Class="mastermind.Pages.ConnexionPage"
Title="Connexion"> Title="Connexion">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label
@ -10,40 +11,8 @@
FontSize="Header" FontSize="Header"
Margin="0, 0, 0, 50"/> Margin="0, 0, 0, 50"/>
<Grid <Views:UsernameEntryView/>
Margin="0, 50" <Views:UsernameEntryView/>
ColumnDefinitions="auto, *, 8*, *"
RowDefinitions="auto">
<Label
Text="Joueur 1"
FontSize="Large"
Margin="50, 0, 0, 0"
VerticalOptions="Center"
HorizontalOptions="Center"/>
<Entry
Grid.Column="2"
FontSize="Medium"
Margin="50, 0"/>
</Grid>
<Grid
Margin="0, 50"
ColumnDefinitions="auto, *, 8*, *"
RowDefinitions="auto">
<Label
Text="Joueur 2"
FontSize="Large"
Margin="50, 0, 0, 0"
VerticalOptions="Center"
HorizontalOptions="Center"/>
<Entry
Grid.Column="2"
FontSize="Medium"
Margin="50, 0"/>
</Grid>
<Button <Button
Text="Se connecter" Text="Se connecter"

@ -1,8 +1,8 @@
namespace mastermind.Pages; namespace mastermind.Pages;
public partial class connexionPage : ContentPage public partial class ConnexionPage : ContentPage
{ {
public connexionPage() public ConnexionPage()
{ {
InitializeComponent(); InitializeComponent();
} }

@ -0,0 +1,24 @@
<?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="mastermind.Views.UsernameEntryView">
<Grid
Margin="0, 50"
ColumnDefinitions="auto, *, 8*, *"
RowDefinitions="auto">
<Label
Text="Joueur X"
FontSize="Large"
Margin="50, 0, 0, 0"
VerticalOptions="Center"
HorizontalOptions="Center"/>
<Entry
Grid.Column="2"
FontSize="Medium"
Margin="50, 0"/>
</Grid>
</ContentView>

@ -0,0 +1,9 @@
namespace mastermind.Views;
public partial class UsernameEntryView : ContentView
{
public UsernameEntryView()
{
InitializeComponent();
}
}

@ -67,12 +67,15 @@
<DependentUpon>Connexion.xaml</DependentUpon> <DependentUpon>Connexion.xaml</DependentUpon>
</Compile> </Compile>
<Compile Update="Pages\connexionPage.xaml.cs"> <Compile Update="Pages\connexionPage.xaml.cs">
<DependentUpon>connexionPage.xaml</DependentUpon> <DependentUpon>ConnexionPage.xaml</DependentUpon>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="Pages\connexionPage.xaml"> <MauiXaml Update="Pages\ConnexionPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\UsernameEntry.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
</ItemGroup> </ItemGroup>

Loading…
Cancel
Save