Xaml 如何将FlexLayout水平居中放置在StackLayout内?

Xaml 如何将FlexLayout水平居中放置在StackLayout内?,xaml,xamarin,xamarin.forms,Xaml,Xamarin,Xamarin.forms,我有一个FlexLayout在StackLayout里面: 如何将FlexLayout置于StackLayout内部的中心位置?将FlexLayout包装在绝对布局中: 请注意,我将第一个标签上的边距拆分为两个标签之间的填充,以便它们位于FlexLayout的中心位置。我建议在水平方向使用堆叠布局。StackLayout提供了在页面中放置元素的更自然的流程 horizontalpoptions=“Center”@Jason在哪里应用该属性?@Jason我将该属性应用于FlexLayo

我有一个
FlexLayout
StackLayout
里面:



如何将
FlexLayout
置于
StackLayout
内部的中心位置?

FlexLayout
包装在
绝对布局中



请注意,我将第一个标签上的边距拆分为两个标签之间的填充,以便它们位于
FlexLayout
的中心位置。我建议在水平方向使用
堆叠布局。StackLayout提供了在页面中放置元素的更自然的流程



horizontalpoptions=“Center”
@Jason在哪里应用该属性?@Jason我将该属性应用于
FlexLayout
标记。但这并没有解决问题。