[英]How to add a sibling view in Visual Studio Xamarin.ios designer?
This is my first Xamarion.IOS project and I have a view controller with the following heirarchy: 这是我的第一个Xamarion.IOS项目,并且我具有一个具有以下层次结构的视图控制器:
View Controller with an "Outer" Stack View (Parent). 具有“外部”堆栈视图(父级)的View Controller。
This outer stack view should have two children: 该外部堆栈视图应有两个子代:
The problem is in Visual Studio 2017 designer when I try to drag a Stack View onto the Parent, it gets set as a child of Child1 because Child1 is taking up the full space of the Parent so there's no space to drag it unto Parent. 问题是在Visual Studio 2017设计器中,当我尝试将Stack View拖动到Parent时,它被设置为Child1的子级,因为Child1占用了Parent的全部空间,因此没有空间将其拖动到Parent。
I tried playing around with the properties of both Child1 and Parent so that there is some space to add Child2 to Parent but I haven't been successful so far. 我尝试使用Child1和Parent的属性,以便有一些空间可以将Child2添加到Parent,但是到目前为止,我还没有成功。 I could do that by removing AutoLayout for the whole storyboard but I want to keep that setting as I am porting from an XCode project which has the setting and I don't want to screw around.
我可以通过删除整个情节提要的AutoLayout来做到这一点,但是我想保留该设置,因为我是从具有该设置的XCode项目中移植的,所以我不想搞砸。 Also seems a bit overkill that I have to remove AutoLayout everytime I need to add a sibling.
每次需要添加同级项时都必须删除AutoLayout似乎也有些过分。
There doesn't seem to be a way to drag the view size to limit it's height. 似乎没有办法拖动视图大小来限制其高度。 Even the "Fill Parent" buttons on the Layout tab cannot be "unchecked".
即使是“布局”选项卡上的“填满父项”按钮也不能被“取消选中”。 Can anyone help me please?
谁能帮我吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.