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">
<DependentUpon>PageLeaderBoard.xaml</DependentUpon>
</Compile>
<Compile Update="Views\pageProfils.xaml.cs">
<DependentUpon>PageProfils.xaml</DependentUpon>
<Compile Update="Views\pageProfiles.xaml.cs">
<DependentUpon>pageProfiles.xaml</DependentUpon>
</Compile>
<Compile Update="Views\pageRegles.xaml.cs">
<DependentUpon>PageRegles.xaml</DependentUpon>

@ -1,26 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
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:game="clr-namespace:Models.Game;assembly=Models"
Title="pageProfils">
<ContentPage.Resources>
<ResourceDictionary>
<game:Base64Converter x:Key="Base64Converter"/>
</ResourceDictionary>
</ContentPage.Resources>
Title="PageProfiles">
<ContentPage.Content>
<Grid RowDefinitions="2*,3*,*">
<Grid RowDefinitions="auto,3*,*">
<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}"
ItemsLayout="VerticalList"
VerticalOptions="Center">
@ -28,7 +25,8 @@
<DataTemplate>
<views:viewsProfils
Pseudo="{Binding Pseudo}"
ProfilePicture="{Binding ProfilePicture}"/>
ProfilePicture="{Binding ProfilePicture}"
CreationDate="{Binding CreationDate}"/>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>

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