Révision e837cdf1 GES_PAC/View/Controls/ChamberButtonView.xaml

Voir les différences:

GES_PAC/View/Controls/ChamberButtonView.xaml
1 1
<?xml version="1.0" encoding="utf-8" ?>
2
<ContentView 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.Controls"
5
             x:Class="GES_PAC.View.Controls.ChamberButtonView"
6
             x:Name="ChamberButtonControl"
7
             x:DataType="vm:ChamberButtonViewModel">
2
<ContentView 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.Controls"  
5
            x:Class="GES_PAC.View.Controls.ChamberButtonView"  
6
            x:Name="ChamberButtonControl"  
7
            x:DataType="vm:ChamberButtonViewModel">  
8 8

  
9
    <Grid>
10
        <Button Text="{Binding ButtonText}"
11
                Style="{StaticResource ChambreButtonStyle}"
12
                Command="{Binding OnClickChamberCommand}"
13
                CommandParameter="{Binding ButtonCommandParameter}"
14
                BackgroundColor="{Binding ButtonBackgroundColor}"
15
                IsEnabled="{Binding ButtonIsEnabled}" />
16
        <Label Text="{Binding ButtonLabel}"
17
               FontSize="10"
18
               Margin="3"
19
               HorizontalOptions="Start"
20
               VerticalOptions="Start" />
21
    </Grid>
9
   <Grid>  
10
       <Button Text="{Binding ButtonText}"  
11
           Style="{StaticResource ChambreButtonStyle}"  
12
           Command="{Binding OnClickChamberCommand}"  
13
           CommandParameter="{Binding ChamberId}"  
14
           BackgroundColor="{Binding ButtonBackgroundColor}"  
15
           IsEnabled="{Binding ButtonIsEnabled}" />  
16

  
17
       <Label Text="{Binding ButtonLabel}"  
18
           FontSize="12"  
19
           Margin="3"  
20
           HorizontalOptions="Start"  
21
           VerticalOptions="Start" />  
22

  
23
       <Label Text="{Binding TimeIn}"  
24
           FontSize="12"  
25
           Margin="3"  
26
           HorizontalOptions="End"  
27
           VerticalOptions="Start" />  
28
   </Grid>  
22 29
</ContentView>

Formats disponibles : Unified diff