Я пытался вставить код horizontaloptions = "CenterAndExpand" во все пути размещения стека, но не сработал.
Он все еще находится в верхнем левом углу :( У кого-нибудь есть идеи? Я просто оставил ее там.
Мой код:
<ContentPage.Content>
<AbsoluteLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<Image AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1" Source="BackgroundPicture.jpg" Aspect="AspectFill"/>
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackLayout>
<StackLayout Orientation="Horizontal">
<local:RoundedEntry x:Name="RegFirstNameEntry" Placeholder="Firstname" WidthRequest="177"></local:RoundedEntry>
<local:RoundedEntry x:Name="RegLastNameEntry" Placeholder="Lastname" WidthRequest="177"></local:RoundedEntry>
</StackLayout>
<StackLayout Orientation="Horizontal">
<local:RoundedEntry x:Name="RegPhoneNumberEntry" Placeholder="Phone" WidthRequest="177" Keyboard="Telephone"></local:RoundedEntry>
<local:RoundedEntry x:Name="RegEmailEntry" Placeholder="Email" WidthRequest="177"></local:RoundedEntry>
</StackLayout>
<StackLayout Orientation="Vertical">
<local:RoundedEntry x:Name="RegPasswordEntry" Placeholder="Password" IsPassword="True" ></local:RoundedEntry>
<local:RoundedEntry x:Name="RegPasswordAgainEntry" Placeholder="Password" IsPassword="True"></local:RoundedEntry>
</StackLayout>
</StackLayout>
</Grid>
</AbsoluteLayout>
</ContentPage.Content>
</ContentPage>