Half of the battle can be won through UI and Control placement in software paradigm. All of us know that a good UI leaves extraordinary impact on the user, so this article is about control placement and control layout in WPF. In this article we will cover the following topics.
- Layout
- Classic Controls
Layout
Layout in WPF are more versatile than for Windows Forms controls. In Windows Forms most of the frequently used layouts use the coordinate based control placement while in WPF it is slot based depending on the screen space. The most common used layouts in WPF are as follows:
| Canvas | Used Coordinate based Control Layout (Same as panel in normal Windows Forms) |
| Stack Layout | Control are placed horizontally / vertically one above the other |
| Wrap Layout | Controls are placed sequentially horizontally / vertically |
| Grid Layout | Creates column, row based grid and each cell allows controls to be placed |
| Dock Panel | Docks the control on specified area |
A collected sample of all can be seen below
More details can be found http://msdn.microsoft.com/en-us/library/ms745058.aspx.
Classic Controls
The control set in WPF is rich with wide support for data binding. A full comparison of WPF and winform control can be found from here.
Additional Link for Controls
http://www.simple-talk.com/content/file.ashx?file=3354
http://www.simple-talk.com/dotnet/.net-framework/from-winform-to-wpf-a-quick-reference-guide/

Join the conversation! Your thoughts help the community grow.