WPF的一些总是记不住的Tips

  • Margin

Left,Top,Right,Bottom

  • HorizontalAlignment & VerticalAlignment

HorizontalAlignment(Height的Opposite,水平对齐方式);VerticalAlignment(Width的反向,垂直对齐方式)

  • <DockPanel LastChildFill="True">

这个可让DockPanel的最后一个Control自动调整自己的大小以铺满剩余的空间

posted @ 2016-05-29 19:05  CoderBaby  阅读(524)  评论(1编辑  收藏  举报