Suite de la page des scores avec une contentview

master
parent 4476c3df9a
commit 97d26ca37c

@ -0,0 +1,14 @@
<?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.Pages.CTableauScore">
<Frame BorderColor="Black" CornerRadius="5" Padding="0" BackgroundColor="Gray" VerticalOptions="Start" Margin="5" >
<Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="10">
<Label Grid.Column="0" Text="N°1" Margin="20" />
<Label Grid.Column="1" Text="Joueur 1" Margin="20" />
<Label Grid.Column="2" Text="5" Margin="20" />
<Label Grid.Column="3" Text="10000" Margin="20" />
</Grid>
</Frame>
</ContentView>

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

@ -1,22 +1,38 @@
<?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"
xmlns:local="clr-namespace:mastermind.Pages"
x:Class="mastermind.Pages.TableauScore" x:Class="mastermind.Pages.TableauScore"
Title="TableauScore"> Title="TableauScore">
<VerticalStackLayout> <ScrollView>
<Grid ColumnDefinitions="auto,2*,auto"> <VerticalStackLayout>
<Image Source="stare.png" MaximumWidthRequest="100" Grid.Column="0" Margin="10" /> <FlexLayout Direction="Row" JustifyContent="SpaceAround">
<Label Grid.Column="1" <Image Source="star.png" WidthRequest="100" HorizontalOptions="End" VerticalOptions="Center"/>
Margin="10" <Frame BorderColor="Black" CornerRadius="5" BackgroundColor="Black" Margin="10" HorizontalOptions="Center" VerticalOptions="Center">
Text="Tableaux des scores" <Label Text="Scoreboard" HorizontalOptions="Center" FontSize="75" VerticalOptions="Start" Margin="0,10,0,10" />
FontSize="50" </Frame>
VerticalOptions="Center" <Image Source="star.png" WidthRequest="100" HorizontalOptions="Start" VerticalOptions="Center"/>
HorizontalOptions="Center" /> </FlexLayout>
<Label /> <Frame Margin="5">
<Image Grid.Column="2" Source="stare.png" MaximumWidthRequest="100" /> <Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="15">
</Grid> <Label Margin="5" Grid.Column="0" Text="RANK"></Label>
<Rectangle HeightRequest="500" WidthRequest="500" Fill="Blue" Stroke="Red"></Rectangle> <Label Margin="5" Grid.Column="1" Text="PSEUDO" ></Label>
<Label Margin="5" Grid.Column="2" Text="Nombre de coût Moyen" ></Label>
<Label Margin="5" Grid.Column="3" Text="POINT" ></Label>
</Grid>
</Frame>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
<local:CTableauScore/>
</VerticalStackLayout>
</ScrollView>
</VerticalStackLayout>
</ContentPage> </ContentPage>

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

@ -63,12 +63,21 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="Pages\tableauScore - Copier.xaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<Compile Update="Pages\tableauScore.xaml.cs"> <Compile Update="Pages\tableauScore.xaml.cs">
<DependentUpon>TableauScore.xaml</DependentUpon> <DependentUpon>TableauScore.xaml</DependentUpon>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="Pages\CTableauScore.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\NewContent1.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\TableauScore.xaml"> <MauiXaml Update="Pages\TableauScore.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>

Loading…
Cancel
Save