Merge pull request 'Vue des publications de l'utilisateur' (#20) from view-my-posts into dev-views
Reviewed-on: #20pull/29/head
commit
e8a32544c5
@ -0,0 +1,55 @@
|
|||||||
|
<?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:local="clr-namespace:Views"
|
||||||
|
x:Class="Views.MyPosts"
|
||||||
|
Title="MyPosts">
|
||||||
|
|
||||||
|
<local:ContainerBase
|
||||||
|
IsNotConnected="False"
|
||||||
|
NeedReturn="True">
|
||||||
|
|
||||||
|
<local:ContainerBase.MyFlyoutContent>
|
||||||
|
|
||||||
|
<Grid RowDefinitions="250, *, *" VerticalOptions="Fill">
|
||||||
|
<VerticalStackLayout Grid.Row="1">
|
||||||
|
<Button Text="Mes informations" ImageSource="person_default.png" Style="{StaticResource button1}" Grid.Row="1"/>
|
||||||
|
<Button Text="Modifier" ImageSource="settings_icon.png" Style="{StaticResource button1}" Grid.Row="2"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</local:ContainerBase.MyFlyoutContent>
|
||||||
|
|
||||||
|
<local:ContainerBase.MyContent>
|
||||||
|
|
||||||
|
<ScrollView>
|
||||||
|
<StackLayout>
|
||||||
|
<Label Text="Mon profil" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="24" Padding="15, 15, 20, 5"/>
|
||||||
|
<Label Text="Mes publications" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
||||||
|
FontSize="20" 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"/>
|
||||||
|
|
||||||
|
</FlexLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</local:ContainerBase.MyContent>
|
||||||
|
|
||||||
|
</local:ContainerBase>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace Views;
|
||||||
|
|
||||||
|
public partial class MyPosts : ContentPage
|
||||||
|
{
|
||||||
|
public MyPosts()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 168 B |
After Width: | Height: | Size: 886 B |
@ -0,0 +1,22 @@
|
|||||||
|
<?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="Views.ReturnButton"
|
||||||
|
x:Name="rb">
|
||||||
|
|
||||||
|
<Border
|
||||||
|
MaximumWidthRequest="100"
|
||||||
|
MaximumHeightRequest="45"
|
||||||
|
BackgroundColor="{AppThemeBinding Light={StaticResource Tertiary}, Dark={StaticResource Gray400}}"
|
||||||
|
IsEnabled="{Binding NeedReturn, Source={x:Reference rb}}"
|
||||||
|
IsVisible="{Binding NeedReturn, Source={x:Reference rb}}">
|
||||||
|
<Border.StrokeShape>
|
||||||
|
<RoundRectangle CornerRadius="10"/>
|
||||||
|
</Border.StrokeShape>
|
||||||
|
|
||||||
|
<ImageButton Source="arrow_back_icon.png"
|
||||||
|
HorizontalOptions="Center" VerticalOptions="Center"
|
||||||
|
Aspect="Center" Scale="0.7"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,19 @@
|
|||||||
|
namespace Views;
|
||||||
|
|
||||||
|
public partial class ReturnButton : ContentView
|
||||||
|
{
|
||||||
|
public ReturnButton()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
// bind NeedReturn
|
||||||
|
public static readonly BindableProperty NeedReturnProperty =
|
||||||
|
BindableProperty.Create("NeedReturn", typeof(bool), typeof(Border), false);
|
||||||
|
|
||||||
|
public bool NeedReturn
|
||||||
|
{
|
||||||
|
get => (bool)GetValue(NeedReturnProperty);
|
||||||
|
set => SetValue(NeedReturnProperty, value);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue