WPF uses a recursive two-phase layout process to determine the size and location of every element in the visual tree. This video explores the measure and arrange phases of the WPF layout system.
- [Narrator] I've worked with a lot of WPF developers…since WPF was released.…Every one of us encounters layout puzzles at some point.…I'm talking about trying to arrange elements…on the screen and finding that the UI…doesn't appear as desired.…This often happens when resizing the UI…when some of the rearranged elements fail…to render as expected.…Having a good understanding of the WPF layout process…can certainly help in these situations.…In this video, I'll explore the WPF layout process.…
The act of arranging elements on the screen…is called Layout.…WPF has a formal layout process that it uses…to display the UI elements.…This is known as the two-phase layout.…Two-phase layout is a negotiation process…where each element and its children collaborate…to determine the final size and location…for each element.…This is a recursive process.…The layout starts at the root element…and cascades down the element tree.…Every element in the visual tree is affected…by this process, and each element is given…the opportunity to express its desired size in the UI.…
- 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.