parent
3c0b4ab9bd
commit
6c24aaddbd
@ -1,14 +1,14 @@
|
||||
namespace Views;
|
||||
|
||||
public partial class ContainerWithHeader : ContentView
|
||||
public partial class ContainerBase : ContentView
|
||||
{
|
||||
public ContainerWithHeader()
|
||||
public ContainerBase()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public static BindableProperty MyContentProperty =
|
||||
BindableProperty.Create("MyContent", typeof(View), typeof(ContainerWithHeader), new Grid());
|
||||
BindableProperty.Create("MyContent", typeof(View), typeof(ContainerBase), new Grid());
|
||||
|
||||
public View MyContent
|
||||
{
|
@ -0,0 +1,44 @@
|
||||
<?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.CustomFlyout"
|
||||
BackgroundColor="{StaticResource Secondary}">
|
||||
|
||||
<Grid RowDefinitions="250, *, 100">
|
||||
<VerticalStackLayout Grid.Row="0">
|
||||
<!-- Header -->
|
||||
<ImageButton Source="person_default.png"
|
||||
BackgroundColor="{StaticResource Secondary}"
|
||||
WidthRequest="100" HeightRequest="100"
|
||||
CornerRadius="50" Margin="0, 30, 0, 10"
|
||||
BorderWidth="5" BorderColor="Black"
|
||||
IsEnabled="False"/>
|
||||
<Button Text="Connection" ImageSource="login_icon.png"
|
||||
MaximumHeightRequest="20" Margin="15, 15, 15, 0"
|
||||
CornerRadius="5"/>
|
||||
</VerticalStackLayout>
|
||||
|
||||
<VerticalStackLayout Grid.Row="1">
|
||||
<!-- Research -->
|
||||
<Button Text="Recherche" ImageSource="search_icon.png"
|
||||
MaximumHeightRequest="20"
|
||||
Style="{StaticResource button1}"/>
|
||||
<Entry Text="Mots-clés" FontAttributes="Bold"
|
||||
BackgroundColor="White" Margin="15, 10, 15, 40"/>
|
||||
|
||||
<!-- Direct research -->
|
||||
<Button Text="Entrées" Style="{StaticResource button1}"/>
|
||||
<Button Text="Plats" Style="{StaticResource button1}"/>
|
||||
<Button Text="Desserts" Style="{StaticResource button1}"/>
|
||||
</VerticalStackLayout>
|
||||
|
||||
<VerticalStackLayout Grid.Row="2">
|
||||
<!-- Footer -->
|
||||
<Button Text="Déconnection" ImageSource="logout_icon.png"
|
||||
MaximumHeightRequest="20" Margin="15, 15, 15, 0"
|
||||
IsVisible="True"
|
||||
CornerRadius="5"/>
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
@ -0,0 +1,9 @@
|
||||
namespace Views;
|
||||
|
||||
public partial class CustomFlyout : ContentView
|
||||
{
|
||||
public CustomFlyout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 413 B |
Loading…
Reference in new issue