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:local="clr-namespace:Views"
FlyoutBackgroundColor="DarkGray"
Shell.FlyoutBehavior="Flyout"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">
<Shell.ItemTemplate>

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

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

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

Loading…
Cancel
Save