Xamarin IOS设计器不能约束超级视图边缘吗? [英] xamarin IOS designer cannot constraint to super view edges?
本文介绍了Xamarin IOS设计器不能约束超级视图边缘吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚更新了Xamarin版本,发现无法约束到Container View的前端或后端.但是,我只能约束到前导边距或尾随边距(已附加图片).有没有办法让我约束超级视图的边缘而不是边缘?
I just updated my Xamarin version and I found that I cannot constraint to the leading edge or trailing edge of the Container View. However, I can only constraint to the Leading margin or Trailing margin(Picture Attached). Is there a way to let me constraint to the edges of a super view not the margin?
推荐答案
暂时是我的解决方法:
- 在设计器中设置约束,然后保存并关闭它.
- 在文本编辑器中打开情节提要,并将约束元素的属性从"leaderMargin"(或"trailingMargin")更新为"leading"(或"trailing")
- 在设计器中重新打开情节提要,然后它应正确显示.
仅供参考,在Xamarin Studio中,这似乎不是问题,只是VS.
FYI, this doesn't appear to be an issue in Xamarin Studio, just VS.
这篇关于Xamarin IOS设计器不能约束超级视图边缘吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文