Content within an application screen is often larger than the allotted area in the application interface. The ScrollViewer provides a convenient way to enable scrolling of content in any UI panel.
- [Instructor] Use the ScrollViewer when you have content…that is too large to fit an area on the screen.…The user can't see all the content,…so you add a ScrollViewer and then the user can scroll…to the left or right, or up and down, or both…to see the rest of the content.…For this example, I'm using two images…that are too big to fit and they are in grids…and those grids are inside a parent grid.…When I click on this picture I can see in the designer…that it's too tall to fit.…
I can see that because of the selection rectangle…that's around it and I can see it scrolling…off the bottom of the designer.…It's the same when I click on this picture here,…I can see that it's too wide to fit.…I can see that in Visual Studio, this is what the user sees.…They see some pictures and they don't know…that they're missing part of the view.…To fix it you just have to change the parent grid…to a ScrollViewer, like this.…With that one change,…I now get a scrollbar on the right side of the image,…and the user can drag down to see the rest of the picture.…
- 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.