modification de la recette(ajout image), copie du home xaml et cs, binding profil
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
96954e6c94
commit
924d66dbe2
@ -1,66 +1,107 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
xmlns:local="clr-namespace:Views"
|
xmlns:local="clr-namespace:Views"
|
||||||
x:Class="Views.Home">
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
||||||
|
x:Class="Views.Home">
|
||||||
<local:ContainerBase
|
|
||||||
IsNotConnected="True">
|
<local:ContainerBase
|
||||||
|
IsNotConnected="True">
|
||||||
<!-- Flyout -->
|
|
||||||
<local:ContainerBase.MyFlyoutContent>
|
<!-- Flyout -->
|
||||||
<VerticalStackLayout Grid.Row="1">
|
<local:ContainerBase.MyFlyoutContent>
|
||||||
<!-- Research -->
|
<VerticalStackLayout Grid.Row="1">
|
||||||
<Button Text="Recherche" ImageSource="search_icon.png"
|
<!-- Research -->
|
||||||
MaximumHeightRequest="20"
|
<Button
|
||||||
Style="{StaticResource button1}"/>
|
Text="Recherche"
|
||||||
<SearchBar Placeholder="Mots-clés (ex.: rapide, fromage)" FontAttributes="Italic" TextColor="Black"
|
ImageSource="search_icon.png"
|
||||||
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
MaximumHeightRequest="20"
|
||||||
Margin="15, 10, 15, 40"/>
|
Style="{StaticResource button1}"/>
|
||||||
|
<SearchBar
|
||||||
<!-- Direct research -->
|
Placeholder="Mots-clés (ex.: rapide, fromage)"
|
||||||
<Button Text="Entrées" ImageSource="flatware_icon.png"
|
FontAttributes="Italic" TextColor="Black"
|
||||||
Style="{StaticResource button1}"/>
|
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
||||||
<Button Text="Plats" ImageSource="room_service_icon.png"
|
Margin="15, 10, 15, 40"/>
|
||||||
Style="{StaticResource button1}"/>
|
|
||||||
<Button Text="Desserts" ImageSource="coffee_icon.png"
|
<!-- Direct research -->
|
||||||
Style="{StaticResource button1}"/>
|
<Button
|
||||||
</VerticalStackLayout>
|
Text="Entrées"
|
||||||
</local:ContainerBase.MyFlyoutContent>
|
ImageSource="flatware_icon.png"
|
||||||
|
Style="{StaticResource button1}"/>
|
||||||
<!-- Master -->
|
<Button
|
||||||
<local:ContainerBase.MyContent>
|
Text="Plats"
|
||||||
<ScrollView>
|
ImageSource="room_service_icon.png"
|
||||||
<StackLayout>
|
Style="{StaticResource button1}"/>
|
||||||
<Label Text="Suggestions" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
<Button
|
||||||
FontSize="24" Padding="15"/>
|
Text="Desserts"
|
||||||
|
ImageSource="coffee_icon.png"
|
||||||
<FlexLayout
|
Style="{StaticResource button1}"/>
|
||||||
Margin="0, 15"
|
</VerticalStackLayout>
|
||||||
Wrap="Wrap"
|
</local:ContainerBase.MyFlyoutContent>
|
||||||
JustifyContent="Start"
|
|
||||||
AlignItems="Center"
|
<!-- Master -->
|
||||||
AlignContent="SpaceEvenly"
|
<local:ContainerBase.MyContent>
|
||||||
HorizontalOptions="Center">
|
<ScrollView>
|
||||||
|
<StackLayout BindingContext="{Binding AllRecipes}" MinimumWidthRequest="400">
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
<!--Modification du prof apportée sur le stacklayout pour empecher l'affichage d'une seule case recipe-->
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
<Label
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
Text="{Binding Description}"
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
FontSize="24"
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
Padding="15"/>
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
<FlexLayout
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
Margin="0, 15"
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
Wrap="Wrap"
|
||||||
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
JustifyContent="Start"
|
||||||
|
AlignItems="Center"
|
||||||
</FlexLayout>
|
AlignContent="SpaceEvenly"
|
||||||
</StackLayout>
|
HorizontalOptions="Center"
|
||||||
</ScrollView>
|
BindableLayout.ItemsSource="{Binding}">
|
||||||
</local:ContainerBase.MyContent>
|
|
||||||
|
<BindableLayout.ItemTemplate>
|
||||||
</local:ContainerBase>
|
<DataTemplate x:DataType="model:Recipe">
|
||||||
|
<Border Style="{StaticResource recipeCase}">
|
||||||
</ContentPage>
|
<Grid RowDefinitions="*, 40" BindingContext="{Binding AllRecipes}">
|
||||||
|
<!--<local:RecipeCase
|
||||||
|
CaseImageSource="room_service_icon.png"
|
||||||
|
Title="{Binding Title}"/>-->
|
||||||
|
|
||||||
|
<Image
|
||||||
|
Grid.Row="0" VerticalOptions="Fill"
|
||||||
|
Source="{Binding AllRecipe.Image}"/>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="{Binding Title}" FontSize="18"
|
||||||
|
Grid.Row="1" HorizontalOptions="Center"/>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</DataTemplate>
|
||||||
|
</BindableLayout.ItemTemplate>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
||||||
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>-->
|
||||||
|
|
||||||
|
</FlexLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</local:ContainerBase.MyContent>
|
||||||
|
|
||||||
|
</local:ContainerBase>
|
||||||
|
|
||||||
|
</ContentPage>
|
||||||
|
Loading…
Reference in new issue