Panels are one of the most important elements in WPF and are vital for controlling UI layout. They act as containers for other elements and are responsible for arranging children on the screen. This tutorial looks at the panels provided in WPF and explores their object model.
- [Instructor] Typically when I talk about layout in WPF,…I focus on a particular set of elements called panels.…These panels derive from this abstract panel class.…A panel is a special element which can contain…multiple child elements.…While all elements support layout,…the panels sole reason for existence…is to arrange its children…at their proper sizes and positions.…So specifically a panel does three things.…It maintains a collection of child elements.…These are of type UI element.…It positions those elements,…and it sizes those elements.…
In this class diagram are the most popular layout panels.…When you create a UI with WPF,…you'll build it by combining these panels in an arrangement.…It's common to have many nested layers of panels…in an application screen.…It's a good idea to know the purpose of each panel,…how it organizes its children.…As I said, the six panels shown here…are the most common panels.…The StackPanel arranges its children…in vertical or horizontal stacks,…while the WrapPanel stacks its children…
- Exploring the layout panels
- Working with the grid
- Adding rows and columns
- Creating scrolling content
- Controlling element visibility
- Aligning content
- Making custom layout panels
Skill Level Intermediate
Learning Visual Studio Team Serviceswith Jose Miguel Rady Allende1h 17m Intermediate
1. Layout Panels
2. Other Layout Concepts
3. Custom Layout Panel
Next steps1m 34s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.