parent
92caf2cde7
commit
cb7bea5796
@ -0,0 +1,37 @@
|
||||
<?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.ContentCollection">
|
||||
<CollectionView ItemsSource="{Binding ItemsSource, Source={x:Reference this}}" Margin="25,0,0,0">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid RowDefinitions="Auto" >
|
||||
<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="2" Text="{Binding Name}"
|
||||
FontAttributes="Bold" Padding="5" VerticalOptions="Center"
|
||||
|
||||
/>
|
||||
<Button Grid.Column="2" ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35" BackgroundColor="White" HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<!-- Si veiw cela vaudra peut-être le coup de faire une content view (équiavalent de user control) -->
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</ContentView>
|
@ -1,66 +1,99 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="BookApp.MainPage">
|
||||
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem Command="{Binding SetLowBrightnessCommand}">
|
||||
<ToolbarItem.Text Text="Add" Clicked="Add_Clicked">
|
||||
Addd
|
||||
</ToolbarItem.Text>
|
||||
<ToolbarItem.IconImageSource>
|
||||
<FontImageSource
|
||||
FontFamily="MaterialIconsOutlined-Regular"
|
||||
Glyph=""/>
|
||||
</ToolbarItem.IconImageSource>
|
||||
</ToolbarItem>
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<StackLayout>
|
||||
<Label>Mes livres</Label>
|
||||
|
||||
<CollectionView ItemsSource="{Binding MyCollections}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border>
|
||||
<Grid RowDefinitions="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="BookApp.MainPage">
|
||||
<Shell.TitleView>
|
||||
<HorizontalStackLayout VerticalOptions="Fill">
|
||||
<Label
|
||||
Text="Modifier"
|
||||
FontFamily="Strande2"
|
||||
TextColor="White"
|
||||
VerticalTextAlignment="Center"
|
||||
VerticalOptions="CenterAndExpand"
|
||||
HeightRequest="50"
|
||||
FontSize="Medium" />
|
||||
</HorizontalStackLayout>
|
||||
</Shell.TitleView>
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem IconImageSource="plus_icone.svg"/>
|
||||
</ContentPage.ToolbarItems>
|
||||
<StackLayout>
|
||||
<Label FontSize="35" Padding="10" FontAttributes="Bold" >Mes livres</Label>
|
||||
<BoxView HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<CollectionView ItemsSource="{Binding MyCollections1}" Margin="25,0,0,0">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid RowDefinitions="Auto" >
|
||||
<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="2" Text="{Binding Name}"
|
||||
FontAttributes="Bold" Padding="5" VerticalOptions="Center"
|
||||
|
||||
/>
|
||||
<Button Grid.Column="2" ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35" BackgroundColor="White" HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<!-- Si veiw cela vaudra peut-être le coup de faire une content view (équiavalent de user control) -->
|
||||
<BoxView Grid.ColumnSpan="4" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
<BoxView HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Label FontSize="18" Padding="10" FontAttributes="Bold" >Filtres</Label>
|
||||
<BoxView HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<CollectionView ItemsSource="{Binding MyCollections2}" Margin="25,0,0,0">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid RowDefinitions="Auto" >
|
||||
<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="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Image Grid.Column="0" Source="{Binding Icone}"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35" />
|
||||
|
||||
<Label Grid.Column="1" Text="{Binding Name}"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Label Grid.Column="2" Text="{Binding Name}"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Button Grid.Column="3" ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35" BackgroundColor="White"/>
|
||||
|
||||
|
||||
<!-- Si veiw cela vaudra peut-être le coup de faire une content view (équiavalent de user control) -->
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
<Button Text="Click to Rotate Text!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
Clicked="OnButtonClicked" />
|
||||
|
||||
</StackLayout>
|
||||
|
||||
|
||||
<!--Pour l'opti on peut préciser le type du bind en aller tout en haut du fichier et faisent x:class ...-->
|
||||
|
||||
</ContentPage>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="2" Text="{Binding Name}"
|
||||
FontAttributes="Bold" Padding="5" VerticalOptions="Center"
|
||||
|
||||
/>
|
||||
<Button Grid.Column="2" ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35" BackgroundColor="White" HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<!-- Si veiw cela vaudra peut-être le coup de faire une content view (équiavalent de user control) -->
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
<Button Text="Click to Rotate Text!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
Clicked="OnButtonClicked" />
|
||||
<BoxView HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="EndAndExpand" />
|
||||
</StackLayout>
|
||||
<!--Pour l'opti on peut préciser le type du bind en aller tout en haut du fichier et faisent x:class ...-->
|
||||
</ContentPage>
|
||||
|
Loading…
Reference in new issue