XF堆栈布局

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:App5"
             x:Class="App5.MainPage">
    <StackLayout VerticalOptions="Center" HorizontalOptions="Center" Orientation="Horizontal" Spacing="20">
        <Label TextColor="Blue">第一个标签</Label>
        <Label TextColor="Red">第一个标签</Label>
        <Label TextColor="Yellow">第一个标签</Label>
    </StackLayout>

</ContentPage>
 

原文地址:https://www.cnblogs.com/dxmfans/p/9434593.html