|
|
|
@ -20,27 +20,29 @@
|
|
|
|
|
WidthRequest="100" HeightRequest="100"
|
|
|
|
|
CornerRadius="50" Margin="0, 30, 0, 10"
|
|
|
|
|
BorderWidth="5" BorderColor="Black"
|
|
|
|
|
IsEnabled="{Binding IsNotConnected, Source={x:Reference fl}}"
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}"
|
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
|
Clicked="ProfileButton_Clicked"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<!-- Connection button -->
|
|
|
|
|
<Button Text="Connection" ImageSource="login_icon.png"
|
|
|
|
|
Style="{StaticResource button2}"
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Source={x:Reference fl}}"
|
|
|
|
|
IsEnabled="{Binding IsNotConnected, Source={x:Reference fl}}"
|
|
|
|
|
Margin="15, 120"
|
|
|
|
|
IsVisible="{Binding IsConnected, Converter={toolkit:InvertedBoolConverter}, Source={x:Reference fl}}"
|
|
|
|
|
Clicked="ConnectionButton_Clicked"/>
|
|
|
|
|
<StackLayout BindingContext="{Binding user}">
|
|
|
|
|
|
|
|
|
|
<!-- Display name -->
|
|
|
|
|
<StackLayout BindingContext="{Binding user}"
|
|
|
|
|
IsVisible="{Binding IsConnected, Converter={toolkit:InvertedBoolConverter}, Source={x:Reference fl}}">
|
|
|
|
|
<Label Text="{Binding Name}"
|
|
|
|
|
HorizontalOptions="Center" Margin="0,15"
|
|
|
|
|
FontSize="20" FontAttributes="Bold" HorizontalTextAlignment="Center"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Converter={toolkit:InvertedBoolConverter} ,Source={x:Reference fl}}"/>
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
|
|
|
|
<Label Text="{Binding Surname}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
FontSize="20" FontAttributes="Bold" HorizontalTextAlignment="Center"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Converter={toolkit:InvertedBoolConverter} ,Source={x:Reference fl}}"/>
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
@ -56,7 +58,7 @@
|
|
|
|
|
<!-- Footer -->
|
|
|
|
|
<Button Text="Déconnection" ImageSource="logout_icon.png"
|
|
|
|
|
Style="{StaticResource button2}"
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Converter={toolkit:InvertedBoolConverter}, Source={x:Reference fl}}"/>
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}"/>
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|