The grid arranges child elements in columns and rows. Each row and column supports various sizing constraints. Child element use the grid-attached properties to specify the row and column location and whether to span multiple rows and columns.
- [Instructor] The Grid is one of the most powerful…layout panels that we have in WPF.…It's very flexible, and it can be complex.…You'll find that it's the default element…that you find when you create a new window…or a new page in WPF.…And, it's typically the root…of all the other elements that you use.…So you might start with a Grid,…and create three columns and two rows,…and then in one of those columns you might put a StackPanel,…and in another one of the columns you might put a DockPanel,…so you use it as the basis of of your general UI.…
It is important to note that this is a,…not a data grid, but it's a layout grid.…You indicate how many rows and columns you want,…and then you specify the size of those rows and columns.…Once you have your layout defined,…then each UI element that's inside the Grid…should specify what row and column to be placed.…And then it also specifies whether or not…to span over multiple rows or multiple columns.…This is the first layout panel that we've looked at…in this chapter that allows its children to overlap.…
- 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.