-
Notifications
You must be signed in to change notification settings - Fork 32
/
AlignmentPage.xaml
29 lines (25 loc) · 1.19 KB
/
AlignmentPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Flexibility.Shared.AlignmentPage">
<ContentPage.Resources>
<StyleSheet Source="Styles/AlignmentPage.css"/>
</ContentPage.Resources>
<ContentPage.Content>
<StackLayout>
<Label StyleClass="header" Text="Align"/>
<FlexLayout Direction="Column">
<Label Text="FlexStart" FlexLayout.AlignSelf="Start"/>
<Label Text="FlexCenter" FlexLayout.AlignSelf="Center"/>
<Label Text="FlexEnd" FlexLayout.AlignSelf="End"/>
</FlexLayout>
<Label StyleClass="header" Text="Justify Content"/>
<FlexLayout Direction="Row"
JustifyContent="SpaceAround">
<BoxView Color="Red" WidthRequest="40" HeightRequest="40" />
<BoxView Color="Blue" WidthRequest="40" HeightRequest="40"/>
<BoxView Color="Purple" WidthRequest="40" HeightRequest="40" />
</FlexLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>