root / GES_PAC / View / MainView.xaml @ e837cdf1
Historique | Voir | Annoter | Télécharger (2,487 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 | <Label Text="Bonjour" |
||
17 | 4e39035b | lbihannic | FontSize="22" |
18 | FontAttributes="Bold" |
||
19 | HorizontalOptions="Center"/> |
||
20 | 65ad7e66 | Lucas Bihannic | |
21 | acb5dd8c | lbihannic | <Label Text="{Binding CurrentDayText}" |
22 | 4e39035b | lbihannic | FontSize="18" |
23 | HorizontalOptions="Center"/> |
||
24 | 65ad7e66 | Lucas Bihannic | |
25 | 18f910c6 | Lucas Bihannic | </StackLayout>
|
26 | </ScrollView>
|
||
27 | acb5dd8c | lbihannic | <StackLayout HorizontalOptions="Center" VerticalOptions="EndAndExpand" Spacing="75" Margin="0, 0, 0, 50"> |
28 | <Button
|
||
29 | Text="Reprendre la journée" |
||
30 | Command="{Binding ResumeDayCommand}" |
||
31 | Style="{StaticResource btnNormal}" |
||
32 | VerticalOptions="End" |
||
33 | HorizontalOptions="Center" |
||
34 | IsVisible="{Binding HasLastDay}"/> |
||
35 | 18f910c6 | Lucas Bihannic | |
36 | <Button
|
||
37 | 4e39035b | lbihannic | Text="Créer une journée" |
38 | Command="{Binding GoToCreateDayCommand}" |
||
39 | Style="{StaticResource btnNormal}" |
||
40 | VerticalOptions="End"/> |
||
41 | 18f910c6 | Lucas Bihannic | </StackLayout>
|
42 | </StackLayout>
|
||
43 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
44 | <Border StrokeThickness="0" |
||
45 | 4e39035b | lbihannic | Background="Black" |
46 | Opacity="0.5" |
||
47 | Padding="20" |
||
48 | WidthRequest="160" |
||
49 | HeightRequest="160" |
||
50 | HorizontalOptions="Center" |
||
51 | VerticalOptions="Center" |
||
52 | StrokeShape="RoundRectangle 20"> |
||
53 | 65ad7e66 | Lucas Bihannic | |
54 | 18f910c6 | Lucas Bihannic | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
55 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
56 | <Label Text="Chargement..." |
||
57 | 4e39035b | lbihannic | FontSize="14" |
58 | TextColor="white" |
||
59 | HorizontalOptions="Center"/> |
||
60 | 18f910c6 | Lucas Bihannic | </VerticalStackLayout>
|
61 | </Border>
|
||
62 | </Grid>
|
||
63 | 65ad7e66 | Lucas Bihannic | |
64 | 18f910c6 | Lucas Bihannic | </Grid>
|
65 | 65ad7e66 | Lucas Bihannic | </ContentPage> |