Statistiques
| Branche: | Révision:

sicpaconnexions / SICPA_Connexions / View / SettingsView.xaml @ 03682d21

Historique | Voir | Annoter | Télécharger (3,743 ko)

1
<?xml version="1.0" encoding="utf-8" ?>
2
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4
             x:Class="SICPA_Connexions.View.SettingsView"
5
             Title="Settings">
6
    <Grid>
7
        <StackLayout BackgroundColor="{StaticResource InraePrimary}" Spacing="0">
8
            <ScrollView>
9
                <StackLayout Spacing="0">
10
                    <StackLayout
11
                        Margin="10"
12
                        HorizontalOptions="FillAndExpand"
13
                        VerticalOptions="FillAndExpand">
14
                        <Frame HorizontalOptions="FillAndExpand"
15
                               VerticalOptions="FillAndExpand" CornerRadius="5">
16

    
17
                            <StackLayout>
18
                                <Frame BorderColor="{StaticResource InraePrimary}" Margin="0,0,0,20">
19
                                    <Label 
20
                                        Text="Paramètres"
21
                                        VerticalOptions="Center" 
22
                                        HorizontalOptions="Center"
23
                                        Style="{StaticResource textTitre}"/>
24
                                </Frame>
25
                                <Grid ColumnDefinitions="70*,30*" RowDefinitions="auto,auto">
26
                                    <Label
27
                                        Grid.Row="0"
28
                                        Grid.Column="0"
29
                                        Text="Etat Connexion BLE :"
30
                                        Style="{StaticResource textLabel}"/>
31
                                    <Image
32
                                        Grid.Row="0"
33
                                        Grid.Column="1"
34
                                        Source="disc_plain_green.svg"
35
                                        IsVisible="{Binding ConnexionOK}"
36
                                        HeightRequest="30"/>
37
                                    <Image
38
                                        Grid.Row="0"
39
                                        Grid.Column="1"
40
                                        Source="disc_plain_red.svg"
41
                                        IsVisible="{Binding ConnexionNOK}"
42
                                        HeightRequest="30"/>
43
                                    <Label
44
                                        Grid.Row="1"
45
                                        Grid.ColumnSpan="2"
46
                                        Text="{Binding NomBLE}"
47
                                        Style="{StaticResource textLabel}"
48
                                        FontSize="Small"
49
                                        HorizontalOptions="Center"/>
50
                                </Grid>
51
                            </StackLayout>
52
                        </Frame>
53
                    </StackLayout>
54
                </StackLayout>
55
            </ScrollView>
56
            <StackLayout
57
            Margin="10"
58
            HorizontalOptions="CenterAndExpand"
59
            Orientation="Horizontal"
60
            VerticalOptions="FillAndExpand">
61

    
62
                <Button 
63
                Text="Connexion BLE"
64
                Command="{Binding ConnexionBLECommand}"
65
                Style="{StaticResource btnNormal}"
66
                VerticalOptions="End"/>
67
            </StackLayout>
68
        </StackLayout>
69
        <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}">
70
            <BoxView BackgroundColor="#FFFFFF" Opacity="0.1" />
71
            <ActivityIndicator
72
                    HorizontalOptions="Center"
73
                    IsRunning="True"
74
                    VerticalOptions="Center" />
75
        </Grid>
76
    </Grid>
77

    
78
</ContentPage>