1.WrapPanel布局
这个布局和stackPanel 布局差不多,最主要的区别就是可以自动转行,从下一行开始。
2.DockPanel布局
简单来说可以Dock在你想Dock的地方
<DockPanel>
<Button DockPanel.Dock="Top">A</Button>
<Button DockPanel.Dock="Bottom">B</Button>
<Button DockPanel.Dock="Left">C</Button>
<Button DockPanel.Dock="Right">D</Button>
<Button Margin="10">E</Button>
</DockPanel>
DockPanel 始终使用最后一个元素去填充剩余的空间
------------------------后期继续更新,欢迎大家一起相互学习探讨 ,作者会不断更新,有什么问题可以留言。
------------------------我始终相信一支独放不是春,万紫千红春满园。希望有更多优秀的小伙伴加入其中。
------------------------如果有写错的地方,欢迎大家指出来。