- WPF - Multimedia
- WPF - 3D Graphics
- WPF - 2D Graphics
- WPF - Interaction
- WPF - Localization
- WPF - Exception Handling
- WPF - Custom Controls
- WPF - Debugging
- WPF - Triggers
- WPF - Styles
- WPF - Templates
- WPF - Resources
- WPF - Data Binding
- WPF - Command Line
- WPF - Input
- WPF - Nesting Of Layout
- WPF - Layouts
- WPF - Controls
- WPF - Routed Events
- WPF - Dependency Properties
- WPF - Elements Tree
- WPF - XAML Overview
- WPF - Hello World
- WPF - Environment Setup
- WPF - Overview
- WPF - Home
WPF Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
WPF - Layouts
The layout of controls is very important and critical for apppcation usabipty. It is used to arrange a group of GUI elements in your apppcation. There are certain important things to consider while selecting layout panels −
Positions of the child elements
Sizes of the child elements
Layering of overlapping child elements on top of each other
Fixed pixel arrangement of controls doesn’t work when the apppcation is to be sed on different screen resolutions. XAML provides a rich set of built-in layout panels to arrange GUI elements in an appropriate way. Some of the most commonly used and popular layout panels are as follows −
Sr. No. | Panels & Description |
---|---|
1 | Stack panel is a simple and useful layout panel in XAML. In stack panel, child elements can be arranged in a single pne, either horizontally or vertically, based on the orientation property. |
2 | In WrapPanel, child elements are positioned in sequential order, from left to right or from top to bottom based on the orientation property. |
3 | DockPanel defines an area to arrange child elements relative to each other, either horizontally or vertically. With DockPanel you can easily dock child elements to top, bottom, right, left and center using the Dock property. |
4 | Canvas panel is the basic layout panel in which the child elements can be positioned exppcitly using coordinates that are relative to the Canvas any side such as left, right, top and bottom. |
5 | A Grid Panel provides a flexible area which consists of rows and columns. In a Grid, child elements can be arranged in tabular form. |