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" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
xmlns:local="clr-namespace:Views"
|
||||
x:Class="Views.Home">
|
||||
|
||||
<local:ContainerBase
|
||||
IsNotConnected="True">
|
||||
|
||||
<!-- Flyout -->
|
||||
<local:ContainerBase.MyFlyoutContent>
|
||||
<VerticalStackLayout Grid.Row="1">
|
||||
<!-- Research -->
|
||||
<Button Text="Recherche" ImageSource="search_icon.png"
|
||||
MaximumHeightRequest="20"
|
||||
Style="{StaticResource button1}"/>
|
||||
<SearchBar Placeholder="Mots-clés (ex.: rapide, fromage)" FontAttributes="Italic" TextColor="Black"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
||||
Margin="15, 10, 15, 40"/>
|
||||
|
||||
<!-- Direct research -->
|
||||
<Button Text="Entrées" ImageSource="flatware_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
<Button Text="Plats" ImageSource="room_service_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
<Button Text="Desserts" ImageSource="coffee_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
</VerticalStackLayout>
|
||||
</local:ContainerBase.MyFlyoutContent>
|
||||
|
||||
<!-- Master -->
|
||||
<local:ContainerBase.MyContent>
|
||||
<ScrollView>
|
||||
<StackLayout>
|
||||
<Label Text="Suggestions" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
||||
FontSize="24" Padding="15"/>
|
||||
|
||||
<FlexLayout
|
||||
Margin="0, 15"
|
||||
Wrap="Wrap"
|
||||
JustifyContent="Start"
|
||||
AlignItems="Center"
|
||||
AlignContent="SpaceEvenly"
|
||||
HorizontalOptions="Center">
|
||||
|
||||
<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>
|
||||
<?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"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
xmlns:local="clr-namespace:Views"
|
||||
xmlns:model="clr-namespace:Model;assembly=Model"
|
||||
x:Class="Views.Home">
|
||||
|
||||
<local:ContainerBase
|
||||
IsNotConnected="True">
|
||||
|
||||
<!-- Flyout -->
|
||||
<local:ContainerBase.MyFlyoutContent>
|
||||
<VerticalStackLayout Grid.Row="1">
|
||||
<!-- Research -->
|
||||
<Button
|
||||
Text="Recherche"
|
||||
ImageSource="search_icon.png"
|
||||
MaximumHeightRequest="20"
|
||||
Style="{StaticResource button1}"/>
|
||||
<SearchBar
|
||||
Placeholder="Mots-clés (ex.: rapide, fromage)"
|
||||
FontAttributes="Italic" TextColor="Black"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
||||
Margin="15, 10, 15, 40"/>
|
||||
|
||||
<!-- Direct research -->
|
||||
<Button
|
||||
Text="Entrées"
|
||||
ImageSource="flatware_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
<Button
|
||||
Text="Plats"
|
||||
ImageSource="room_service_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
<Button
|
||||
Text="Desserts"
|
||||
ImageSource="coffee_icon.png"
|
||||
Style="{StaticResource button1}"/>
|
||||
</VerticalStackLayout>
|
||||
</local:ContainerBase.MyFlyoutContent>
|
||||
|
||||
<!-- Master -->
|
||||
<local:ContainerBase.MyContent>
|
||||
<ScrollView>
|
||||
<StackLayout BindingContext="{Binding AllRecipes}" MinimumWidthRequest="400">
|
||||
<!--Modification du prof apportée sur le stacklayout pour empecher l'affichage d'une seule case recipe-->
|
||||
<Label
|
||||
Text="{Binding Description}"
|
||||
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
||||
FontSize="24"
|
||||
Padding="15"/>
|
||||
|
||||
<FlexLayout
|
||||
Margin="0, 15"
|
||||
Wrap="Wrap"
|
||||
JustifyContent="Start"
|
||||
AlignItems="Center"
|
||||
AlignContent="SpaceEvenly"
|
||||
HorizontalOptions="Center"
|
||||
BindableLayout.ItemsSource="{Binding}">
|
||||
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate x:DataType="model:Recipe">
|
||||
<Border Style="{StaticResource recipeCase}">
|
||||
<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