WPF learning record (a): Layout

  Beginner WPF, record knowledge about learning.

  The WPF UniformGrid layout, with a layout similar to the Grid, is in tabular form, except that automatically ranks UniformGrid layout table divided equally, does not need to manually set the cell width and height for sharing table.

  UniformGrid layout based on the number of cells, for automatic segmentation, the number of rows and columns are automatically adjusted according to the number of cells; we can also count column control lines through the attribute manually, in use, property Rows manually under UniformGrid the number of control lines, columns columns manual control properties. FirstColumn control which property as the starting column (column number starts at 0). FlowDirection attribute control arrangement direction, from left to right or right to left. These attributes allow us the flexibility to set the desired layout effects.

  WrapPanel layout, child control is automatically positioned, when changing the size of the shutter to form the sub-control will automatically adjust the position of the child control layout to minimize the sub-display control. The default is arranged horizontally, laterally aligned by the Orientation property settings or longitudinally aligned.

Guess you like

Origin www.cnblogs.com/haley24/p/12306517.html