Some panels allow children to overlap. Use the ZIndex property to change the overlap order.
- [Instructor] Some of the layout panels in WPF…support the overlapping of their children.…Two of the common panels that support overlapping are…the grid and the canvas.…When you have two elements overlap…then you have to have a way of determining…which one is shown on top of the other…or closer to the user.…When you think about traditional 3D space…we have an X axis and a Y axis and a Z axis.…And the Z axis is usually the one…that points towards the user.…So, in WPF, you won't be surprised to find that…there's a property called the ZIndex.…
By changing the ZIndex value,…you can move an item closer to the user…or put it back to the back of the stack.…In my example here I have a canvas with two letterboxes.…letterbox D is here, it's first in the canvas.…And letterbox A is second in the canvas.…If you look at the designer, you'll see that…letterbox A is shown on top of letterbox D.…So, that implies that even though I don't explicitly…set a ZIndex value here, it's created by the canvas…when it loads the controls.…
- 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.