root / GES_PAC / View / MainView.xaml @ 957bebf1
Historique | Voir | Annoter | Télécharger (2,955 ko)
1 | 65ad7e66 | Lucas Bihannic | <?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 | xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
||
5 | 18f910c6 | Lucas Bihannic | xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
6 | 65ad7e66 | Lucas Bihannic | x:Class="GES_PAC.View.MainView" |
7 | x:DataType="vm:MainViewModel"> |
||
8 | |||
9 | 18f910c6 | Lucas Bihannic | <Grid>
|
10 | <StackLayout BackgroundColor="White" Spacing="50"> |
||
11 | 65ad7e66 | Lucas Bihannic | |
12 | 18f910c6 | Lucas Bihannic | <tools:ConnectionIndicatorView /> |
13 | <ScrollView>
|
||
14 | <StackLayout Spacing="100"> |
||
15 | |||
16 | 957bebf1 | lbihannic | <Grid ColumnDefinitions="*,Auto,*" Padding="10"> |
17 | |||
18 | <Button Text="Exporter" |
||
19 | Command="{Binding ExportDataCommand}" |
||
20 | Grid.Column="0" |
||
21 | HorizontalOptions="Start" |
||
22 | VerticalOptions="Center" /> |
||
23 | |||
24 | <Label Text="Bonjour" |
||
25 | Grid.Column="1" |
||
26 | FontSize="22" |
||
27 | FontAttributes="Bold" |
||
28 | HorizontalOptions="Center" |
||
29 | VerticalOptions="Center" /> |
||
30 | |||
31 | </Grid>
|
||
32 | 65ad7e66 | Lucas Bihannic | |
33 | acb5dd8c | lbihannic | <Label Text="{Binding CurrentDayText}" |
34 | 4e39035b | lbihannic | FontSize="18" |
35 | HorizontalOptions="Center"/> |
||
36 | 65ad7e66 | Lucas Bihannic | |
37 | 18f910c6 | Lucas Bihannic | </StackLayout>
|
38 | </ScrollView>
|
||
39 | acb5dd8c | lbihannic | <StackLayout HorizontalOptions="Center" VerticalOptions="EndAndExpand" Spacing="75" Margin="0, 0, 0, 50"> |
40 | <Button
|
||
41 | Text="Reprendre la journée" |
||
42 | Command="{Binding ResumeDayCommand}" |
||
43 | Style="{StaticResource btnNormal}" |
||
44 | VerticalOptions="End" |
||
45 | HorizontalOptions="Center" |
||
46 | IsVisible="{Binding HasLastDay}"/> |
||
47 | 18f910c6 | Lucas Bihannic | |
48 | <Button
|
||
49 | 4e39035b | lbihannic | Text="Créer une journée" |
50 | Command="{Binding GoToCreateDayCommand}" |
||
51 | Style="{StaticResource btnNormal}" |
||
52 | VerticalOptions="End"/> |
||
53 | 18f910c6 | Lucas Bihannic | </StackLayout>
|
54 | </StackLayout>
|
||
55 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
56 | <Border StrokeThickness="0" |
||
57 | 4e39035b | lbihannic | Background="Black" |
58 | Opacity="0.5" |
||
59 | Padding="20" |
||
60 | WidthRequest="160" |
||
61 | HeightRequest="160" |
||
62 | HorizontalOptions="Center" |
||
63 | VerticalOptions="Center" |
||
64 | StrokeShape="RoundRectangle 20"> |
||
65 | 65ad7e66 | Lucas Bihannic | |
66 | 18f910c6 | Lucas Bihannic | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
67 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
68 | <Label Text="Chargement..." |
||
69 | 4e39035b | lbihannic | FontSize="14" |
70 | TextColor="white" |
||
71 | HorizontalOptions="Center"/> |
||
72 | 18f910c6 | Lucas Bihannic | </VerticalStackLayout>
|
73 | </Border>
|
||
74 | </Grid>
|
||
75 | 65ad7e66 | Lucas Bihannic | |
76 | 18f910c6 | Lucas Bihannic | </Grid>
|
77 | 65ad7e66 | Lucas Bihannic | </ContentPage> |