如何在launch.storybord + xamarin.forms中将图像设置为背景 [英] how to set image as background in launch.storybord + xamarin.forms
问题描述
在最近发布的xamarin启动屏幕中,可以从情节提要中设计出来,而不是按照明智的方式添加所有初始屏幕图像的旧方法.
in recent release of xamarin launch screen can be designed from storyboard instead of old approach where we were adding all splash screen images according to wise.
了解如何使用情节提要设置启动屏幕.
from this link get to know how can set launchscreen using storyboard.
所以我的问题是如何将图像设置为情节提要的背景,而不希望背景颜色.
so my question is how can i set image as background to storyboard dont want background colour.
我需要图像作为背景,可以在上面放置徽标图像和标签.
i need image as background on which i can put logo image and label.
那有可能吗?如果是,那怎么可能.
so is it possible?if yes then how.
请帮助.
推荐答案
您需要在imageView上设置top,bottom,leading,trailing
约束.
You need to set top,bottom,leading,trailing
constraints on the imageView.
-
选择
Constraint edit mode
,然后单击两次以显示侧面上可以拖动以设置约束的点.
Select
Constraint edit mode
,and click twice to show the point on side which ca be dragged to set the constraint.
将约束值修改为0(在属性"菜单中).
Modify the constraint value to 0(in Property menu).
对这四个约束进行相同的工作.
Do the same work on the four constraints.
请参阅使用Xamarin Designer for iOS的自动版式
这篇关于如何在launch.storybord + xamarin.forms中将图像设置为背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!