Révision 18f910c6 GES_PAC/View/MainView.xaml
GES_PAC/View/MainView.xaml | ||
---|---|---|
2 | 2 |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
3 | 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 | 4 |
xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
5 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
|
5 | 6 |
x:Class="GES_PAC.View.MainView" |
6 | 7 |
x:DataType="vm:MainViewModel"> |
7 | 8 |
|
8 |
<VerticalStackLayout Padding="20" Spacing="25" |
|
9 |
VerticalOptions="CenterAndExpand" |
|
10 |
HorizontalOptions="Center"> |
|
9 |
<Grid> |
|
10 |
<StackLayout BackgroundColor="White" Spacing="50"> |
|
11 | 11 |
|
12 |
<Label Text="Bonjour" |
|
12 |
<tools:ConnectionIndicatorView /> |
|
13 |
<ScrollView> |
|
14 |
<StackLayout Spacing="100"> |
|
15 |
|
|
16 |
<Label Text="Bonjour" |
|
13 | 17 |
FontSize="22" |
14 | 18 |
FontAttributes="Bold" |
15 | 19 |
HorizontalOptions="Center"/> |
16 | 20 |
|
17 |
<Label Text="Pas de journée disponible" |
|
21 |
<Label Text="Pas de journée disponible"
|
|
18 | 22 |
FontSize="18" |
19 |
TextColor="Gray" |
|
20 | 23 |
HorizontalOptions="Center"/> |
21 | 24 |
|
22 |
<Label Text="Créez une journée pour commencer" |
|
25 |
<Label Text="Créez une journée pour commencer"
|
|
23 | 26 |
FontSize="16" |
24 | 27 |
HorizontalOptions="Center" |
25 |
TextColor="Black" |
|
26 | 28 |
Padding="10"/> |
27 | 29 |
|
28 |
<Button Text="Créer une journée" |
|
29 |
BackgroundColor="Green" |
|
30 |
TextColor="White" |
|
31 |
CornerRadius="10" |
|
32 |
Padding="15" |
|
33 |
FontSize="18" |
|
34 |
HorizontalOptions="Center" |
|
35 |
WidthRequest="220" |
|
36 |
Command="{Binding GoToCreateDayCommand}"/> |
|
30 |
</StackLayout> |
|
31 |
</ScrollView> |
|
32 |
<StackLayout |
|
33 |
Margin="10" |
|
34 |
HorizontalOptions="CenterAndExpand" |
|
35 |
Orientation="Horizontal" |
|
36 |
VerticalOptions="FillAndExpand"> |
|
37 |
|
|
38 |
<Button |
|
39 |
Text="Créer une journée" |
|
40 |
Command="{Binding GoToCreateDayCommand}" |
|
41 |
Style="{StaticResource btnNormal}" |
|
42 |
VerticalOptions="End"/> |
|
43 |
</StackLayout> |
|
44 |
</StackLayout> |
|
45 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
|
46 |
<Border StrokeThickness="0" |
|
47 |
Background="Black" |
|
48 |
Opacity="0.5" |
|
49 |
Padding="20" |
|
50 |
WidthRequest="160" |
|
51 |
HeightRequest="160" |
|
52 |
HorizontalOptions="Center" |
|
53 |
VerticalOptions="Center" |
|
54 |
StrokeShape="RoundRectangle 20"> |
|
37 | 55 |
|
38 |
</VerticalStackLayout> |
|
56 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
|
57 |
<ActivityIndicator IsRunning="True" Color="White" /> |
|
58 |
<Label Text="Chargement..." |
|
59 |
FontSize="14" |
|
60 |
TextColor="white" |
|
61 |
HorizontalOptions="Center"/> |
|
62 |
</VerticalStackLayout> |
|
63 |
</Border> |
|
64 |
</Grid> |
|
39 | 65 |
|
66 |
</Grid> |
|
40 | 67 |
</ContentPage> |
Formats disponibles : Unified diff