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 1 year ago
parent 3deafb234f
commit 6c6dad65ca

@ -3,10 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Trek_12.Views.Components.viewsProfils" x:Class="Trek_12.Views.Components.viewsProfils"
x:Name="this"> x:Name="this">
<VerticalStackLayout> <VerticalStackLayout>
<Grid ColumnDefinitions="*,*,*,*" > <Grid ColumnDefinitions="*,*,*">
<Frame Margin="10" <Frame Margin="10"
Grid.Column="1" Grid.Column="0"
BorderColor="Black" BorderColor="Black"
CornerRadius="50" CornerRadius="50"
HeightRequest="60" HeightRequest="60"
@ -18,7 +19,8 @@
Aspect="AspectFill" Aspect="AspectFill"
Margin="-20"/> Margin="-20"/>
</Frame> </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> </Grid>
</VerticalStackLayout> </VerticalStackLayout>
</ContentView> </ContentView>

@ -13,7 +13,7 @@ public partial class viewsProfils : ContentView
} }
public static readonly BindableProperty PseudoProperty = 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 public string Pseudo
{ {
@ -30,4 +30,9 @@ public partial class viewsProfils : ContentView
get => converter.RetrieveImage((string)GetValue(ProfilePictureProperty)); get => converter.RetrieveImage((string)GetValue(ProfilePictureProperty));
set => SetValue(ProfilePictureProperty, value); 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