Version

More Alignment Options

The WinFlowLayoutManager™ control can neatly arrange several child controls on a form in a horizontal or vertical pattern. Previously, WinFlowLayoutManager supported the alignment of its child controls with respect to the form, not each other. The Alignment property, now deprecated, was used to align the controls managed by WinFlowLayoutManager with respect to the Orientation property. If Orientation was set to Horizontal, the layout would be aligned horizontally with respect to the form (or parent container).

We’ve now added two additional properties: HorizontalAlignment and VerticalAlignment . These properties are much easier to work with as they will always align in the direction that their name states. Depending on the Orientation, HorizontalAlignment may align all the controls horizontally with respect to the ContainerControl, or it may align all the controls with respect to each other. For example, setting the Orientation to Horizontal will lay the child controls from left to right. Setting the HorizontalAlignment to Center will center all the controls in the ControlContainer. Setting the VerticalAlignment to Near (Top) will align the tops of the child controls.

These two new properties were necessary as child controls would always be centered with respect to each other. This could have led to a sloppy implementation in some cases that wouldn’t "flow" as the name of the control implies.