Statistiques
| Branche: | Révision:

inraetemplate / INRAETemplate / View / Tools / ConnectionIndicatorView.xaml @ 7b67ff55

Historique | Voir | Annoter | Télécharger (1,453 ko)

1
<?xml version="1.0" encoding="utf-8" ?>
2
<StackLayout
3
    x:Class="INRAETemplate.View.Tools.ConnectionIndicatorView"
4
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
5
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6
    xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
7
    xmlns:vm="clr-namespace:INRAETemplate.Services"
8
    x:DataType="vm:ConnexionService">
9

    
10
    <StackLayout.Resources>
11
        <ResourceDictionary>
12
            <toolkit:InvertedBoolConverter x:Key="NOTConverter" />
13
        </ResourceDictionary>
14
    </StackLayout.Resources>
15

    
16
    <StackLayout>
17
        <!--  connecté  -->
18
        <StackLayout
19
            BackgroundColor="Green"
20
            HorizontalOptions="FillAndExpand"
21
            IsVisible="{Binding IsINRAE}">
22
            <Label
23
                FontAttributes="Bold"
24
                FontSize="Small"
25
                HorizontalOptions="Center"
26
                Text="Connecté"
27
                TextColor="White" />
28
        </StackLayout>
29

    
30
        <!--  non connecté  -->
31
        <StackLayout
32
            BackgroundColor="Black"
33
            HorizontalOptions="FillAndExpand"
34
            IsVisible="{Binding IsINRAE, Converter={StaticResource NOTConverter}}">
35
            <Label
36
                FontAttributes="Bold"
37
                FontSize="Small"
38
                HorizontalOptions="Center"
39
                Text="Non connecté"
40
                TextColor="White" />
41
        </StackLayout>
42

    
43
    </StackLayout>
44
</StackLayout>