WPF学习—布局

1、Grid布局

行列定义默认平分 

(1)在XAML中创建行列 

 (2)在代码中创建行列(在窗口载入时执行)

Margin属性为距Grid边框四边的距离 :左上右下

Margin="left,top,right,bottom"/>

2、StackPane 

3、嵌套布局

猜你喜欢

转载自blog.csdn.net/weixin_40626630/article/details/81676484