Update (Front-End): Project
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
9b98c6e297
commit
17eda607cb
@ -1,49 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="BookApp.Composants.ListItemView">
|
||||
<Grid RowDefinitions="Auto" Margin="25,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Image Grid.Column="0"
|
||||
Source="{Binding Icone}"
|
||||
HeightRequest="25"
|
||||
WidthRequest="25"/>
|
||||
|
||||
<Label Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
FontAttributes="Bold"
|
||||
Padding="5"
|
||||
VerticalOptions="Center"/>
|
||||
|
||||
<Grid Grid.Column="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0"
|
||||
Text="{Binding Name}"
|
||||
FontAttributes="Bold"
|
||||
Padding="5"
|
||||
VerticalOptions="Center"
|
||||
Margin="0,0,30,0"/>
|
||||
|
||||
<Button Grid.Column="1"
|
||||
ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35"
|
||||
Command="{Binding Path=BindingContext.ButtonCommand, Source={x:Reference Name=ListItemRoot}}"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
|
||||
<BoxView Grid.ColumnSpan="4"
|
||||
HeightRequest="1"
|
||||
BackgroundColor="LightGray"
|
||||
VerticalOptions="End" />
|
||||
</Grid>
|
||||
</ContentView>
|
@ -1,18 +0,0 @@
|
||||
namespace BookApp.Composants
|
||||
{
|
||||
public partial class ListItemView : ContentView
|
||||
{
|
||||
public static readonly BindableProperty ButtonCommandProperty = BindableProperty.Create(nameof(ButtonCommand), typeof(Command), typeof(ListItemView));
|
||||
|
||||
public Command ButtonCommand
|
||||
{
|
||||
get => (Command)GetValue(ButtonCommandProperty);
|
||||
set => SetValue(ButtonCommandProperty, value);
|
||||
}
|
||||
|
||||
public ListItemView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue