Révision 612877b5 GES_PAC/View/CreateMeasureView.xaml

Voir les différences:

GES_PAC/View/CreateMeasureView.xaml
17 17
                       FontSize="20"
18 18
                       FontAttributes="Bold"
19 19
                       HorizontalOptions="Center" />
20

  
21
                    <Label Text="{Binding LastTime}"
22
                       FontSize="14"
23
                       FontAttributes="Bold"
24
                       HorizontalOptions="Center" 
25
                       IsVisible="{Binding HasLastMeasure}"/>
26
                    
20 27
                    <VerticalStackLayout Spacing="15" WidthRequest="300">
21 28

  
22 29
                        <!-- CH4 -->
......
29 36
                                   TextColor="Black"
30 37
                                   Placeholder="0,0"
31 38
                                   Keyboard="Numeric">
32
                                    <Entry.Triggers>
33
                                        <DataTrigger TargetType="Entry" Binding="{Binding HasLastMeasure}" Value="False">
34
                                            <Setter Property="Grid.ColumnSpan" Value="2" />
35
                                        </DataTrigger>
36
                                    </Entry.Triggers>
37 39
                                </Entry>
38 40
                                <Label Grid.Column="1"
39 41
                                   Text="{Binding LastCH4, StringFormat='[{0} ppm]'}"
40 42
                                   FontSize="16"
41
                                   TextColor="Gray"
43
                                   TextColor="{Binding LastCH4Color}"
42 44
                                   VerticalOptions="Center"
43 45
                                   HorizontalOptions="End"
44 46
                                   IsVisible="{Binding HasLastMeasure}" />
......
61 63
                                   TextColor="Black"
62 64
                                   Placeholder="0,0"
63 65
                                   Keyboard="Numeric">
64
                                    <Entry.Triggers>
65
                                        <DataTrigger TargetType="Entry" Binding="{Binding HasLastMeasure}" Value="False">
66
                                            <Setter Property="Grid.ColumnSpan" Value="2" />
67
                                        </DataTrigger>
68
                                    </Entry.Triggers>
69 66
                                </Entry>
70 67
                                <Label Grid.Column="1"
71 68
                                   Text="{Binding LastO2, StringFormat='[{0} %]'}"
72 69
                                   FontSize="16"
73
                                   TextColor="Gray"
70
                                   TextColor="{Binding LastO2Color}"
74 71
                                   VerticalOptions="Center"
75 72
                                   HorizontalOptions="End"
76 73
                                   IsVisible="{Binding HasLastMeasure}" />
......
93 90
                                   TextColor="Black"
94 91
                                   Placeholder="0,0"
95 92
                                   Keyboard="Numeric">
96
                                    <Entry.Triggers>
97
                                        <DataTrigger TargetType="Entry" Binding="{Binding HasLastMeasure}" Value="False">
98
                                            <Setter Property="Grid.ColumnSpan" Value="2" />
99
                                        </DataTrigger>
100
                                    </Entry.Triggers>
101 93
                                </Entry>
102 94
                                <Label Grid.Column="1"
103 95
                                   Text="{Binding LastCO2, StringFormat='[{0} %]'}"
104 96
                                   FontSize="16"
105
                                   TextColor="Gray"
97
                                   TextColor="{Binding LastCO2Color}"
106 98
                                   VerticalOptions="Center"
107 99
                                   HorizontalOptions="End"
108 100
                                   IsVisible="{Binding HasLastMeasure}" />
......
120 112
            </ScrollView>
121 113
            <StackLayout
122 114
                Margin="10"
123
                HorizontalOptions="CenterAndExpand"
115
                HorizontalOptions="Center"
124 116
                Orientation="Horizontal"
125 117
                VerticalOptions="FillAndExpand">
126 118

  
127 119
                <Button 
128
                    Text="Enregistrer les mesures"
120
                    Text="Comportements"
121
                    BackgroundColor="Orange"
122
                    TextColor="White"
123
                    Command="{Binding ComportementsCommand}"
124
                    Style="{StaticResource btnNormal}"
125
                    VerticalOptions="End"
126
                    Margin="0,0,10,0"/>
127

  
128
                <Button 
129
                    Text="Enregistrer"
129 130
                    Command="{Binding CreateMeasureCommand}"
130 131
                    Style="{StaticResource btnNormal}"
131 132
                    IsEnabled="{Binding IsFormValid}"

Formats disponibles : Unified diff