Renommage et ajout de la date de création

pull/98/head
Rémi LAVERGNE 11 months ago
parent 12a18207ae
commit 3deafb234f

@ -78,8 +78,8 @@
<Compile Update="Views\PageLeaderBoard.xaml.cs"> <Compile Update="Views\PageLeaderBoard.xaml.cs">
<DependentUpon>PageLeaderBoard.xaml</DependentUpon> <DependentUpon>PageLeaderBoard.xaml</DependentUpon>
</Compile> </Compile>
<Compile Update="Views\pageProfils.xaml.cs"> <Compile Update="Views\pageProfiles.xaml.cs">
<DependentUpon>PageProfils.xaml</DependentUpon> <DependentUpon>pageProfiles.xaml</DependentUpon>
</Compile> </Compile>
<Compile Update="Views\pageRegles.xaml.cs"> <Compile Update="Views\pageRegles.xaml.cs">
<DependentUpon>PageRegles.xaml</DependentUpon> <DependentUpon>PageRegles.xaml</DependentUpon>

@ -1,26 +1,23 @@
<?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="Trek_12.Views.PageProfils" x:Class="Trek_12.Views.PageProfiles"
xmlns:views="clr-namespace:Trek_12.Views.Components" xmlns:views="clr-namespace:Trek_12.Views.Components"
xmlns:game="clr-namespace:Models.Game;assembly=Models" Title="PageProfiles">
Title="pageProfils">
<ContentPage.Resources>
<ResourceDictionary>
<game:Base64Converter x:Key="Base64Converter"/>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content> <ContentPage.Content>
<Grid RowDefinitions="auto,3*,*">
<Grid RowDefinitions="2*,3*,*">
<Image Source="bg_profils.jpg" Grid.RowSpan="3" Aspect="AspectFill"/> <Image Source="bg_profils.jpg" Grid.RowSpan="3" Aspect="AspectFill"/>
<Frame BackgroundColor="WhiteSmoke" Opacity="0.5" Grid.Row="1" />
<Label Text="Profils" TextColor="black" HorizontalTextAlignment="Center" FontSize="Header" Margin="30"/> <Label Grid.Row="0" Text="Profils" TextColor="black" HorizontalTextAlignment="Center" FontSize="Header" Margin="30"/>
<Grid Grid.Row="1" ColumnDefinitions="*,*,*">
<Label Text="Pseudo" TextColor="black" FontSize="Large" HorizontalTextAlignment="Center" Grid.Column="1"/>
<Label Text="Date de Création" TextColor="black" FontSize="Large" HorizontalTextAlignment="Center" Grid.Column="2"/>
</Grid>
<CollectionView Grid.Row="1" ItemsSource="{Binding Players}" <CollectionView Grid.Row="1" ItemsSource="{Binding Players}"
ItemsLayout="VerticalList" ItemsLayout="VerticalList"
VerticalOptions="Center"> VerticalOptions="Center">
@ -28,7 +25,8 @@
<DataTemplate> <DataTemplate>
<views:viewsProfils <views:viewsProfils
Pseudo="{Binding Pseudo}" Pseudo="{Binding Pseudo}"
ProfilePicture="{Binding ProfilePicture}"/> ProfilePicture="{Binding ProfilePicture}"
CreationDate="{Binding CreationDate}"/>
</DataTemplate> </DataTemplate>
</CollectionView.ItemTemplate> </CollectionView.ItemTemplate>
</CollectionView> </CollectionView>

@ -7,11 +7,11 @@ using Models.Interfaces;
namespace Trek_12.Views; namespace Trek_12.Views;
public partial class PageProfils : ContentPage public partial class PageProfiles : ContentPage
{ {
public Game ProfileManager => (App.Current as App).Manager; public Game ProfileManager => (App.Current as App).Manager;
public PageProfils() public PageProfiles()
{ {
InitializeComponent(); InitializeComponent();
BindingContext = ProfileManager; BindingContext = ProfileManager;
Loading…
Cancel
Save