Statistiques
| Branche: | Révision:

inraetemplate / INRAETemplate / View / VivantView.xaml @ 7b67ff55

Historique | Voir | Annoter | Télécharger (4,097 ko)

1 fa2aa88f ajournaux
<?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="INRAETemplate.View.VivantView"
5 7b67ff55 ajournaux
             xmlns:tools="clr-namespace:INRAETemplate.View.Tools"
6 fa2aa88f ajournaux
             Title="Formulaire Vivant">
7
    <Grid>
8
        <StackLayout BackgroundColor="{StaticResource InraePrimary}" Spacing="0">
9 7b67ff55 ajournaux
            <tools:ConnectionIndicatorView />
10 fa2aa88f ajournaux
            <ScrollView>
11
                <StackLayout Spacing="0">
12
                    <StackLayout
13
                        Margin="10"
14
                        HorizontalOptions="FillAndExpand"
15
                        VerticalOptions="FillAndExpand">
16
                        <Frame HorizontalOptions="FillAndExpand"
17
                               VerticalOptions="FillAndExpand" CornerRadius="5">
18
19
                            <StackLayout>
20
                                <Frame BorderColor="{StaticResource InraePrimary}" Margin="0,0,0,20">
21
                                    <Label 
22
                                        Text="Formulaire Vivant"
23
                                        VerticalOptions="Center" 
24
                                        HorizontalOptions="Center"
25
                                        Style="{StaticResource textTitre}"
26
                                        />
27
                                </Frame>
28
                                <Picker Title="Liste des vivants"
29
                                        ItemsSource="{Binding Vivants}"
30
                                        SelectedItem="{Binding VivantSelectionne}"
31
                                        ItemDisplayBinding="{Binding VivantNom}"/>
32 7b67ff55 ajournaux
                                <Grid ColumnDefinitions="25*,75*" RowDefinitions="auto,auto">
33 fa2aa88f ajournaux
                                    <Label Grid.Column="0"
34
                                           Grid.Row="0"
35
                                           Text="Id : "
36
                                           Style="{StaticResource textLabel}" />
37
                                    <Label
38
                                        Grid.Column="1"
39
                                        Grid.Row="0"
40
                                        Text="{Binding VivantId}"
41
                                        VerticalOptions="Center" 
42
                                        HorizontalOptions="Center"
43
                                        Style="{StaticResource textLabel}"/>
44
                                    <Label Grid.Column="0"
45
                                           Grid.Row="1"
46
                                           Text="Nom : "
47
                                           Style="{StaticResource textLabel}"/>
48
                                    <Label 
49
                                        Grid.Column="1"
50
                                        Grid.Row="1"
51
                                        Text="{Binding VivantNom}"
52
                                        VerticalOptions="Center" 
53
                                        HorizontalOptions="Center"/>
54
                                </Grid>
55
                            </StackLayout>
56
                        </Frame>
57
                    </StackLayout>
58
                </StackLayout>
59
            </ScrollView>
60
            <StackLayout
61
                    Margin="10"
62
                    HorizontalOptions="CenterAndExpand"
63
                    Orientation="Horizontal"
64
                    VerticalOptions="FillAndExpand">
65
66
                <Button 
67
                    Text="Edition"
68
                    Command="{Binding EditionCommand}"
69
                    Style="{StaticResource btnNormal}"
70
                    VerticalOptions="End"/>
71
            </StackLayout>
72
        </StackLayout>
73
        <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}">
74
            <BoxView BackgroundColor="#FFFFFF" Opacity="0.3" />
75
            <ActivityIndicator
76
                    HorizontalOptions="Center"
77
                    IsRunning="True"
78
                    VerticalOptions="Center" />
79
        </Grid>
80
    </Grid>
81
</ContentPage>