1 回答
TA贡献1847条经验 获得超7个赞
您可以使用一组嵌套网格:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition/>
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<Button Content="Left Button 1" Height="100"/>
<Button Content="Left Button 2" Height="100"/>
<Button Content="Left Button 3" Height="100"/>
</StackPanel>
<StackPanel Grid.Column="2">
<Button Content="Right Button 1" Height="100"/>
<Button Content="Right Button 2" Height="100"/>
<Button Content="Right Button 3" Height="100"/>
</StackPanel>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" VerticalAlignment="Center" Text="PIN"/>
<TextBox Grid.Column="1" VerticalAlignment="Center"/>
</Grid>
<Grid Grid.Row="1" Margin="10">
<!-- the number keypad -->
</Grid>
</Grid>
</Grid>
- 1 回答
- 0 关注
- 109 浏览
添加回答
举报