root / GES_PAC / View / ChambersView.xaml @ master
Historique | Voir | Annoter | Télécharger (6,659 ko)
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.ChambersView" |
7 |
x:DataType="vm:ChambersViewModel"> |
8 |
|
9 |
<Grid>
|
10 |
<StackLayout BackgroundColor="White" Spacing="50"> |
11 |
<tools:ConnectionIndicatorView /> |
12 |
<ScrollView>
|
13 |
|
14 |
<VerticalStackLayout Grid.Row="1" Spacing="5"> |
15 |
|
16 |
<Label Text="Série n°1" |
17 |
FontSize="16" |
18 |
FontAttributes="Bold" |
19 |
HorizontalOptions="Center" /> |
20 |
|
21 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="10"> |
22 |
|
23 |
<!-- Remorque -->
|
24 |
<Border Stroke="Black" StrokeThickness="2" BackgroundColor="Transparent" HorizontalOptions="Center" StrokeShape="RoundRectangle 10"> |
25 |
|
26 |
<Grid
|
27 |
BackgroundColor="LightGray" |
28 |
Padding="5" |
29 |
RowSpacing="0" |
30 |
ColumnSpacing="5" |
31 |
WidthRequest="250" |
32 |
HeightRequest="500"> |
33 |
|
34 |
<Grid.ColumnDefinitions>
|
35 |
<ColumnDefinition Width="Auto"/> |
36 |
<ColumnDefinition Width="80"/> |
37 |
<ColumnDefinition Width="Auto"/> |
38 |
</Grid.ColumnDefinitions>
|
39 |
|
40 |
<Grid.RowDefinitions>
|
41 |
<RowDefinition Height="*" /> |
42 |
<RowDefinition Height="*" /> |
43 |
<RowDefinition Height="*" /> |
44 |
<RowDefinition Height="*" /> |
45 |
<RowDefinition Height="*" /> |
46 |
<RowDefinition Height="*" /> |
47 |
</Grid.RowDefinitions>
|
48 |
|
49 |
<!-- Boutons Gauche -->
|
50 |
<Button Grid.Row="5" Grid.Column="0" Text="1" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="1"/> |
51 |
<Button Grid.Row="4" Grid.Column="0" Text="3" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="3"/> |
52 |
<Button Grid.Row="3" Grid.Column="0" Text="5" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="5"/> |
53 |
<Button Grid.Row="2" Grid.Column="0" Text="7" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="7"/> |
54 |
<Button Grid.Row="1" Grid.Column="0" Text="9" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="9"/> |
55 |
<Button Grid.Row="0" Grid.Column="0" Text="11" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="11"/> |
56 |
|
57 |
<!-- Boutons Droite -->
|
58 |
<Button Grid.Row="5" Grid.Column="2" Text="2" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="2"/> |
59 |
<Button Grid.Row="4" Grid.Column="2" Text="4" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="4"/> |
60 |
<Button Grid.Row="3" Grid.Column="2" Text="6" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="6"/> |
61 |
<Button Grid.Row="2" Grid.Column="2" Text="8" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="8"/> |
62 |
<Button Grid.Row="1" Grid.Column="2" Text="10" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="10"/> |
63 |
<Button Grid.Row="0" Grid.Column="2" Text="12" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="12"/> |
64 |
|
65 |
<!-- Couloir central -->
|
66 |
<BoxView Grid.Column="1" Grid.RowSpan="6" HeightRequest="500" WidthRequest="75" Color="Gray"/> |
67 |
</Grid>
|
68 |
</Border>
|
69 |
|
70 |
<!-- Arrow -->
|
71 |
<Image Source="arrow" |
72 |
HeightRequest="75" |
73 |
WidthRequest="75" |
74 |
Rotation="-90" |
75 |
TranslationY="20" |
76 |
HorizontalOptions="Center" |
77 |
BackgroundColor="Transparent"/> |
78 |
</VerticalStackLayout>
|
79 |
|
80 |
|
81 |
</VerticalStackLayout>
|
82 |
</ScrollView>
|
83 |
<StackLayout
|
84 |
Margin="-40" |
85 |
HorizontalOptions="Center" |
86 |
Orientation="Horizontal" |
87 |
VerticalOptions="Fill"> |
88 |
|
89 |
<Button
|
90 |
Text="Terminer les mesures" |
91 |
Command="{Binding CreateSetCommand}" |
92 |
Style="{StaticResource btnNormal}" |
93 |
IsEnabled="{Binding IsFormValid}" |
94 |
VerticalOptions="End"/> |
95 |
</StackLayout>
|
96 |
</StackLayout>
|
97 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
98 |
<Border StrokeThickness="0" |
99 |
Background="Black" |
100 |
Opacity="0.5" |
101 |
Padding="20" |
102 |
WidthRequest="160" |
103 |
HeightRequest="160" |
104 |
HorizontalOptions="Center" |
105 |
VerticalOptions="Center" |
106 |
StrokeShape="RoundRectangle 20"> |
107 |
|
108 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
109 |
<ActivityIndicator IsRunning="True" Color="White" /> |
110 |
<Label Text="Chargement..." |
111 |
FontSize="14" |
112 |
TextColor="white" |
113 |
HorizontalOptions="Center"/> |
114 |
</VerticalStackLayout>
|
115 |
</Border>
|
116 |
</Grid>
|
117 |
</Grid>
|
118 |
|
119 |
</ContentPage>
|