root / GES_PAC / View / ChambersView.xaml @ fff89fc5
Historique | Voir | Annoter | Télécharger (7,188 ko)
1 | 09d4a0de | lbihannic | <?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 | fff89fc5 | lbihannic | <Button Grid.Row="5" Grid.Column="0" Text="1" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="1" BackgroundColor="{Binding ChamberColors[0]}"/> |
51 | <Button Grid.Row="4" Grid.Column="0" Text="3" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="3" BackgroundColor="{Binding ChamberColors[2]}"/> |
||
52 | <Button Grid.Row="3" Grid.Column="0" Text="5" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="5" BackgroundColor="{Binding ChamberColors[4]}"/> |
||
53 | <Button Grid.Row="2" Grid.Column="0" Text="7" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="7" BackgroundColor="{Binding ChamberColors[6]}"/> |
||
54 | <Button Grid.Row="1" Grid.Column="0" Text="9" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="9" BackgroundColor="{Binding ChamberColors[8]}"/> |
||
55 | <Button Grid.Row="0" Grid.Column="0" Text="11" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="11" BackgroundColor="{Binding ChamberColors[10]}"/> |
||
56 | 09d4a0de | lbihannic | |
57 | <!-- Boutons Droite -->
|
||
58 | fff89fc5 | lbihannic | <Button Grid.Row="5" Grid.Column="2" Text="2" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="2" BackgroundColor="{Binding ChamberColors[1]}"/> |
59 | <Button Grid.Row="4" Grid.Column="2" Text="4" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="4" BackgroundColor="{Binding ChamberColors[3]}"/> |
||
60 | <Button Grid.Row="3" Grid.Column="2" Text="6" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="6" BackgroundColor="{Binding ChamberColors[5]}"/> |
||
61 | <Button Grid.Row="2" Grid.Column="2" Text="8" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="8" BackgroundColor="{Binding ChamberColors[7]}"/> |
||
62 | <Button Grid.Row="1" Grid.Column="2" Text="10" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="10" BackgroundColor="{Binding ChamberColors[9]}"/> |
||
63 | <Button Grid.Row="0" Grid.Column="2" Text="12" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="12" BackgroundColor="{Binding ChamberColors[11]}"/> |
||
64 | 09d4a0de | lbihannic | |
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 | ba296a27 | lbihannic | TranslationY="20" |
76 | 09d4a0de | lbihannic | HorizontalOptions="Center" |
77 | ba296a27 | lbihannic | BackgroundColor="Transparent"/> |
78 | 09d4a0de | lbihannic | </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> |