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