|
|
|
@ -7,10 +7,10 @@
|
|
|
|
|
x:Name="fl"
|
|
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray600}}">
|
|
|
|
|
|
|
|
|
|
<Grid RowDefinitions="250, *, 100">
|
|
|
|
|
<Grid RowDefinitions="Auto, *, Auto">
|
|
|
|
|
<VerticalStackLayout Grid.Row="0">
|
|
|
|
|
|
|
|
|
|
<Grid RowDefinitions="auto, *">
|
|
|
|
|
<Grid RowDefinitions="Auto, *">
|
|
|
|
|
<!-- Return -->
|
|
|
|
|
<local:ReturnButton NeedReturn="{Binding NeedReturn, Source={x:Reference fl}}" Grid.Row="0"
|
|
|
|
|
HorizontalOptions="Start" Padding="10, 10, 0, 0"/>
|
|
|
|
@ -28,22 +28,29 @@
|
|
|
|
|
<!-- Connection button -->
|
|
|
|
|
<Button Text="Connection" ImageSource="login_icon.png"
|
|
|
|
|
Style="{StaticResource button2}"
|
|
|
|
|
Margin="15, 120"
|
|
|
|
|
Margin="15, 50"
|
|
|
|
|
IsVisible="{Binding IsConnected, Converter={toolkit:InvertedBoolConverter}, Source={x:Reference fl}}"
|
|
|
|
|
Clicked="ConnectionButton_Clicked"/>
|
|
|
|
|
|
|
|
|
|
<!-- Display name -->
|
|
|
|
|
<StackLayout BindingContext="{Binding ConnectedUser}"
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}">
|
|
|
|
|
<FlexLayout
|
|
|
|
|
Margin="0, 10"
|
|
|
|
|
Wrap="Wrap"
|
|
|
|
|
AlignItems="Center"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
BindingContext="{Binding ConnectedUser}"
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}">
|
|
|
|
|
|
|
|
|
|
<Label Text="{Binding Name}"
|
|
|
|
|
HorizontalOptions="Center" Margin="0,15"
|
|
|
|
|
HorizontalOptions="Center" Margin="2,0"
|
|
|
|
|
FontSize="20" FontAttributes="Bold" HorizontalTextAlignment="Center"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
|
|
|
|
|
|
|
|
|
<Label Text="{Binding Surname}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
HorizontalOptions="Center" Margin="2,0"
|
|
|
|
|
FontSize="20" FontAttributes="Bold" HorizontalTextAlignment="Center"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
</FlexLayout>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
@ -51,10 +58,12 @@
|
|
|
|
|
<ContentView
|
|
|
|
|
VerticalOptions="Fill"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Margin="0, 30"
|
|
|
|
|
Content="{Binding MyFlyoutContent, Source={x:Reference fl}}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<VerticalStackLayout Grid.Row="2">
|
|
|
|
|
<VerticalStackLayout Grid.Row="2"
|
|
|
|
|
Margin="0, 20">
|
|
|
|
|
<!-- Footer -->
|
|
|
|
|
<Button Text="Déconnection" ImageSource="logout_icon.png"
|
|
|
|
|
Style="{StaticResource button2}"
|
|
|
|
|