The DockPanel allows you to dock the child elements to the top, bottom, left, or right edge of the DockPanel. By default, the last control, if not given a specific dock position, will fill the remaining space inside the DockPanel.
- [Instructor] The dock panel is optimized…for docking tile elements to the specified side.…You can specify top, right, bottom or left.…And you do that using an attached property called Dock.…If you dock to the top and bottom,…then the elements are sized to the full width…of the dock panel, and they're sized…to the minimum necessary height.…Now this is not exactly true.…They're not sized to the full width…because you also have to…take into consideration the previous docked elements…and where they're arranged on the screen.…When you dock to the left and right,…then it's sized to the full height of the dock panel,…with the same caveat,…and sized to the minimum necessary width.…
There's another useful property,…which is not an attached property.…This is called Last Child Fill.…This indicates whether the last element…in the dock panel fills the remaining space.…Final rule, children do not overlap.…Here's my dock panel.…I have five letterboxes in there.…Since none of these are specifying which side to dock to,…it uses the default, which is to dock them…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.