我想在我的毛伊岛应用程序上使用开关控件,但是我找不到如何正确地将其居中。 为了可视化问题,我将
BackgroundColor
设置为LightCoral
<Switch
OnColor="Aquamarine"
ThumbColor="Navy"
BackgroundColor="LightCoral"
HorizontalOptions="Center">
</Switch>
:: 您可以看到开关控件本身贴在左侧。使用
这是您可以在github上找到的一个问题,[1111](https://github.com/microsoft/microsoft/microsoft-ui-xaml/issues/3652,)内部将控制设置为154。
MinWidth