WPF Layouts - A Visual Quick Start
4.76 (38 votes)12345
WPF Visual Quick Start Articles by Josh Fischer
Layouts (this article)
Switching from WinForms UI development to WPF can be intimidating. The question I keptasking myself is, "Where do I start?" Hopefully, this article will help you quickly develop a goodstarting point for WPF as it did for me. The examples are written in XAML, as it can be easilycopied and pasted into the Visual Studio (or any other) designer. My goal is to show how thelayouts work with screenshots and XAML, instead of using text descriptions.
Layouts are the mechanism that WPF uses to define how visual items will be displayed on thescreen for standard 2D applications. This concept is not new, and if you have used any of the Panelcontrols in WinForms (
, etc.), you will not have anytrouble understanding the basic layouts in WPF. In their simplest form, the layout classes arenothing more than containers for the other controls in your application and handle the positioningof those controls for you.
- Arranges controls in a line, either horizontally or vertically.