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

给你一囗甜甜゛ 提交于 2019-12-08 04:05:25

问题


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.

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

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.

please help.


回答1:


You need to set top,bottom,leading,trailing constraints on the imageView.

  1. Select Constraint edit mode ,and click twice to show the point on side which ca be dragged to set the constraint.

  2. Modify the constraint value to 0(in Property menu).

  3. Do the same work on the four constraints.

Refer to Auto Layout with the Xamarin Designer for iOS



来源:https://stackoverflow.com/questions/47711372/how-to-set-image-as-background-in-launch-storybord-xamarin-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!