Test Page d'accueil avec un flex layout

pull/10/head
Louis LABORIE 2 years ago
parent ee68791e74
commit c99d46fa4d

@ -7,7 +7,7 @@
Shell.FlyoutBehavior="Disabled">
<ShellContent
Title="Home"
Title="Linaris"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

@ -4,38 +4,53 @@
x:Class="Linaris.MainPage">
<ScrollView>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<FlexLayout Direction="Row"
AlignItems="Start"
JustifyContent="SpaceAround"
BackgroundColor="#5A5A5A">
<Image
Source="dotnet_bot.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="200"
Source="album1.jpg"
SemanticProperties.Description="Album 1"
HeightRequest="175"
HorizontalOptions="Center" />
<Label
Text="Hello, World!"
SemanticProperties.HeadingLevel="Level1"
FontSize="32"
<Image
Source="album2.jpg"
SemanticProperties.Description="Album 2"
HeightRequest="175"
HorizontalOptions="Center" />
<Label
Text="Welcome to .NET Multi-platform App UI"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
FontSize="18"
<Image
Source="album3.jpg"
SemanticProperties.Description="Album 3"
HeightRequest="175"
HorizontalOptions="Center" />
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
<Image
Source="album4.jpg"
SemanticProperties.Description="Album 4"
HeightRequest="175"
HorizontalOptions="Center" />
<Image
Source="album5.jpg"
SemanticProperties.Description="Album 5"
HeightRequest="175"
HorizontalOptions="Center" />
<Image
Source="album6.jpg"
SemanticProperties.Description="Album 6"
HeightRequest="175"
HorizontalOptions="Center" />
</VerticalStackLayout>
<Image
Source="album7.png"
SemanticProperties.Description="Album 7"
HeightRequest="175"
HorizontalOptions="Center" />
</FlexLayout>
</ScrollView>
</ContentPage>

@ -9,7 +9,7 @@ public partial class MainPage : ContentPage
InitializeComponent();
}
private void OnCounterClicked(object sender, EventArgs e)
/*private void OnCounterClicked(object sender, EventArgs e)
{
count++;
@ -19,6 +19,6 @@ public partial class MainPage : ContentPage
CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
}
}*/
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Loading…
Cancel
Save