Révision 957b1f34 GES_PAC/View/SetListView.xaml
GES_PAC/View/SetListView.xaml | ||
---|---|---|
1 | 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 |
xmlns:vm="clr-namespace:GES_PAC.ViewModel"
|
|
5 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools"
|
|
6 |
x:Class="GES_PAC.View.SetListView"
|
|
7 |
x:DataType="vm:SetListViewModel">
|
|
8 |
|
|
9 |
<Grid>
|
|
10 |
<StackLayout BackgroundColor="White" Spacing="50">
|
|
11 |
|
|
12 |
<tools:ConnectionIndicatorView />
|
|
13 |
<ScrollView>
|
|
14 |
<StackLayout Spacing="100">
|
|
15 |
|
|
16 |
<Label Text="{Binding LastSetText}"
|
|
17 |
FontSize="18"
|
|
18 |
HorizontalOptions="Center"/>
|
|
19 |
|
|
20 |
|
|
21 |
</StackLayout>
|
|
22 |
</ScrollView>
|
|
23 |
<Grid ColumnDefinitions="*,Auto,*,Auto,*" |
|
24 |
HorizontalOptions="Center"
|
|
25 |
VerticalOptions="FillAndExpand">
|
|
26 |
|
|
27 |
<Button
|
|
28 |
Grid.Column="1"
|
|
29 |
Text="Reprendre la série"
|
|
30 |
Command="{Binding GoToLastSetCommand}" |
|
31 |
Style="{StaticResource btnNormal}"
|
|
32 |
VerticalOptions="End"
|
|
33 |
HorizontalOptions="Start"
|
|
34 |
IsVisible="{Binding HasLastSet}"
|
|
35 |
Margin="0,0,20,20"/>
|
|
36 |
|
|
37 |
<Button
|
|
38 |
Grid.Column="3" |
|
39 |
Text="Créer une série"
|
|
40 |
Command="{Binding GoToCreateSetCommand}"
|
|
41 |
Style="{StaticResource btnNormal}"
|
|
42 |
VerticalOptions="End"
|
|
43 |
HorizontalOptions="End"
|
|
44 |
Margin="20,0,0,20"/>
|
|
45 |
</Grid>
|
|
46 |
|
|
47 |
</StackLayout>
|
|
48 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}">
|
|
49 |
<Border StrokeThickness="0"
|
|
50 |
Background="Black"
|
|
51 |
Opacity="0.5"
|
|
52 |
Padding="20"
|
|
53 |
WidthRequest="160"
|
|
54 |
HeightRequest="160"
|
|
55 |
HorizontalOptions="Center"
|
|
56 |
VerticalOptions="Center"
|
|
57 |
StrokeShape="RoundRectangle 20">
|
|
58 |
|
|
59 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center">
|
|
60 |
<ActivityIndicator IsRunning="True" Color="White" />
|
|
61 |
<Label Text="Chargement..."
|
|
62 |
FontSize="14"
|
|
63 |
TextColor="white"
|
|
64 |
HorizontalOptions="Center"/>
|
|
65 |
</VerticalStackLayout>
|
|
66 |
</Border>
|
|
67 |
</Grid>
|
|
68 |
|
|
69 |
</Grid>
|
|
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 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools"
|
|
6 |
x:Class="GES_PAC.View.SetListView"
|
|
7 |
x:DataType="vm:SetListViewModel">
|
|
8 |
|
|
9 |
<Grid>
|
|
10 |
<StackLayout BackgroundColor="White" Spacing="50">
|
|
11 |
|
|
12 |
<tools:ConnectionIndicatorView />
|
|
13 |
<ScrollView>
|
|
14 |
<StackLayout Spacing="100">
|
|
15 |
|
|
16 |
<Label Text="{Binding LastSetText}"
|
|
17 |
FontSize="18"
|
|
18 |
HorizontalOptions="Center"/>
|
|
19 |
|
|
20 |
</StackLayout> |
|
21 |
</ScrollView>
|
|
22 |
<StackLayout HorizontalOptions="Center" VerticalOptions="EndAndExpand" Spacing="75" Margin="0, 0, 0, 50">
|
|
23 |
|
|
24 |
<Button
|
|
25 |
Text="Créer une série"
|
|
26 |
Command="{Binding GoToCreateSetCommand}" |
|
27 |
Style="{StaticResource btnNormal}"
|
|
28 |
VerticalOptions="End"
|
|
29 |
HorizontalOptions="Center"/>
|
|
30 |
|
|
31 |
<Button
|
|
32 |
Text="Reprendre la série"
|
|
33 |
Command="{Binding GoToLastSetCommand}"
|
|
34 |
Style="{StaticResource btnNormal}"
|
|
35 |
VerticalOptions="End"
|
|
36 |
HorizontalOptions="Center" |
|
37 |
IsVisible="{Binding HasLastSet}"/>
|
|
38 |
|
|
39 |
<Button
|
|
40 |
Text="Terminer la journée"
|
|
41 |
Command="{Binding GoToEndDayCommand}"
|
|
42 |
Style="{StaticResource btnNormal}"
|
|
43 |
VerticalOptions="End"
|
|
44 |
HorizontalOptions="Center"/>
|
|
45 |
</StackLayout>
|
|
46 |
|
|
47 |
</StackLayout>
|
|
48 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}">
|
|
49 |
<Border StrokeThickness="0"
|
|
50 |
Background="Black"
|
|
51 |
Opacity="0.5"
|
|
52 |
Padding="20"
|
|
53 |
WidthRequest="160"
|
|
54 |
HeightRequest="160"
|
|
55 |
HorizontalOptions="Center"
|
|
56 |
VerticalOptions="Center"
|
|
57 |
StrokeShape="RoundRectangle 20">
|
|
58 |
|
|
59 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center">
|
|
60 |
<ActivityIndicator IsRunning="True" Color="White" />
|
|
61 |
<Label Text="Chargement..."
|
|
62 |
FontSize="14"
|
|
63 |
TextColor="white"
|
|
64 |
HorizontalOptions="Center"/>
|
|
65 |
</VerticalStackLayout>
|
|
66 |
</Border>
|
|
67 |
</Grid>
|
|
68 |
|
|
69 |
</Grid>
|
|
70 | 70 |
</ContentPage> |
Formats disponibles : Unified diff