correction on the custom header

pull/19/head
Alexandre Agostinho 2 years ago
parent e695efac91
commit 3c0b4ab9bd

@ -5,7 +5,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Views" xmlns:local="clr-namespace:Views"
FlyoutBackgroundColor="DarkGray" FlyoutBackgroundColor="DarkGray"
Shell.FlyoutBehavior="Flyout" Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="False">
<Shell.ItemTemplate> <Shell.ItemTemplate>

@ -5,13 +5,17 @@
x:Class="Views.ContainerWithHeader" x:Class="Views.ContainerWithHeader"
x:Name="root"> x:Name="root">
<Grid RowDefinitions="50, *"> <Grid RowDefinitions="80, *"
ColumnDefinitions="200, *">
<local:CustomHeader <local:CustomHeader
HeightRequest="80" Grid.Column="1"
VerticalOptions="Start" MinimumHeightRequest="80"
Padding="10, 0"/> VerticalOptions="StartAndExpand"/>
<ContentView <ContentView
Grid.Row="1" VerticalOptions="StartAndExpand"
Grid.Row="1" Grid.Column="1"
Content="{Binding MyContent, Source={x:Reference root}}"/> Content="{Binding MyContent, Source={x:Reference root}}"/>
</Grid> </Grid>

@ -4,15 +4,11 @@
x:Class="Views.CustomHeader" x:Class="Views.CustomHeader"
BackgroundColor="{StaticResource Primary}"> BackgroundColor="{StaticResource Primary}">
<Grid ColumnDefinitions="50, *"> <Grid ColumnDefinitions="*">
<ImageButton Source="list_icon.png" Clicked="ImageButton_Clicked" <Label Text="Mon app trop géniale"
MaximumHeightRequest="20" MaximumWidthRequest="20" FontAttributes="Bold" FontSize="24" TextColor="White"
VerticalOptions="Center"/> Margin="20, 0, 0, 0" VerticalOptions="Center" HorizontalOptions="Start"/>
<Label Text="Mon app trop géniale" Grid.Column="1"
FontAttributes="Bold" FontSize="24" Margin="20, 0, 0, 0"
VerticalOptions="Center" HorizontalOptions="Start"/>
</Grid> </Grid>

@ -14,7 +14,7 @@
FontSize="32" FontAttributes="Bold" Padding="15"/> FontSize="32" FontAttributes="Bold" Padding="15"/>
<!-- Master recipes --> <!-- Master recipes -->
<FlexLayout toolkit:DockLayout.DockPosition="None" <FlexLayout
Margin="0, 15" Margin="0, 15"
Wrap="Wrap" Wrap="Wrap"
JustifyContent="SpaceEvenly" JustifyContent="SpaceEvenly"

Loading…
Cancel
Save