Thursday, 28 July 2011

WPF Basics - Layout Panels

In order to arrange controls, you need to use a layout panel. WPF ships with the following layout panels:
Canvas - for specific (X,Y) positioning
StackPanel - for stacking elements horizontally or vertically
WrapPanel - automatically handles wrapping elements to a new row as needed
DockPanel - for familiar docking functionality. Dock to the sides of the window.
Grid - for a row and column based layout
UniformGrid - a specialized form of Grid where all cells are the same size

No comments:

Post a Comment