如何在 launch.storybord + xamarin.forms 中将图像设置为背景

how to set image as background in launch.storybord + xamarin.forms

在最近发布的 xamarin 启动屏幕中,可以从故事板设计,而不是我们根据 wise 添加所有启动画面图像的旧方法。

https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/

从此 link 了解如何使用故事板设置启动屏幕。

所以我的问题是如何将图像设置为情节提要的背景而不需要背景颜色。

我需要图像作为背景,我可以在上面放置徽标图像和标签。

那有可能吗?如果有那怎么办。

请帮忙。

您需要在 imageView 上设置 top,bottom,leading,trailing 约束。

  1. Select Constraint edit mode ,然后单击两次以显示可以拖动以设置约束的边上的点。

  2. 将约束值修改为0(在属性菜单中)。

  3. 对四个约束做同样的工作。

参考Auto Layout with the Xamarin Designer for iOS