Ajout de la date de création et modification de la disposition
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

pull/98/head
Rémi LAVERGNE 11 months ago
parent 3deafb234f
commit 6c6dad65ca

@ -3,10 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Trek_12.Views.Components.viewsProfils"
x:Name="this">
<VerticalStackLayout>
<Grid ColumnDefinitions="*,*,*,*" >
<Grid ColumnDefinitions="*,*,*">
<Frame Margin="10"
Grid.Column="1"
Grid.Column="0"
BorderColor="Black"
CornerRadius="50"
HeightRequest="60"
@ -18,7 +19,8 @@
Aspect="AspectFill"
Margin="-20"/>
</Frame>
<Label Text="{Binding Pseudo, Source={x:Reference this}}" Grid.Column="2" TextColor="Black" FontSize="Large" HorizontalTextAlignment="Center" Margin="100"/>
<Label Text="{Binding Pseudo, Source={x:Reference this}}" Grid.Column="1" TextColor="Black" FontSize="Large" HorizontalTextAlignment="Center"/>
<Label Text="{Binding CreationDate, Source={x:Reference this}}" Grid.Column="2" TextColor="Black" FontSize="Large" HorizontalTextAlignment="Center"/>
</Grid>
</VerticalStackLayout>
</ContentView>

@ -13,7 +13,7 @@ public partial class viewsProfils : ContentView
}
public static readonly BindableProperty PseudoProperty =
BindableProperty.Create("Pseudo", typeof(string), typeof(ContentLeaderBoard), "Profile n°*");
BindableProperty.Create("Pseudo", typeof(string), typeof(ContentLeaderBoard), "Profile n°*");
public string Pseudo
{
@ -30,4 +30,9 @@ public partial class viewsProfils : ContentView
get => converter.RetrieveImage((string)GetValue(ProfilePictureProperty));
set => SetValue(ProfilePictureProperty, value);
}
public static readonly BindableProperty CreationDateProperty =
BindableProperty.Create("CreationDate", typeof(string), typeof(viewsProfils), string.Empty);
public string CreationDate => (string)GetValue(CreationDateProperty);
}
Loading…
Cancel
Save