[英]Xamarin.Forms button positioning
我很难在没有Xamarin.Forms for Android的设计器的情况下设计我的简单UI。我试图了解Xamarin.Forms要获得我试图做的事情的图片,我得到了屏幕截图,这就是我到目前为止所尝试的:
<StackLayout>
<StackLayout Orientation="Horizontal" VerticalOptions="Start">
</StackLayout>
<StackLayout VerticalOptions="CenterAndExpand">
<Image Source="Login.png"/>
</StackLayout>
<StackLayout Orientation="Vertical" VerticalOptions="End">
<Button Text="Start"/>
<Button Text="Login"/>
</StackLayout>
</StackLayout>
编辑:通过我的代码,我在Buttom上获得了2个小按钮,我不知道为什么,您能不能向正确的方向引导我。 只想知道我如何将控件定位为屏幕截图
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Image/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button/>
<Button Grid.Column="1"/>
</Grid>
</Grid>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.