|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
xmlns:local="clr-namespace:Views"
|
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
|
x:Class="Views.ContainerFlyout"
|
|
|
|
|
x:Name="fl"
|
|
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray600}}">
|
|
|
|
@ -30,8 +31,8 @@
|
|
|
|
|
<Label Text="Jean-Baptiste De La Fontaine"
|
|
|
|
|
HorizontalOptions="Center" Margin="15"
|
|
|
|
|
FontSize="20" FontAttributes="Bold" HorizontalTextAlignment="Center"
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}"
|
|
|
|
|
IsEnabled="{Binding IsConnected, Source={x:Reference fl}}"/>
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Converter={toolkit:InvertedBoolConverter} ,Source={x:Reference fl}}"/>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
@ -46,7 +47,7 @@
|
|
|
|
|
<!-- Footer -->
|
|
|
|
|
<Button Text="Déconnection" ImageSource="logout_icon.png"
|
|
|
|
|
Style="{StaticResource button2}"
|
|
|
|
|
IsVisible="{Binding IsConnected, Source={x:Reference fl}}"/>
|
|
|
|
|
IsVisible="{Binding IsNotConnected, Converter={toolkit:InvertedBoolConverter}, Source={x:Reference fl}}"/>
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|