From the course: Windows Presentation Foundation: 2 Layout
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Add grid rows and columns with the designer
From the course: Windows Presentation Foundation: 2 Layout
Add grid rows and columns with the designer
- [Instructor] When you work with a grid inside the Visual Studio Editor, you have two basic views of it. You have the XAML view and you have the Designer view. This of course is the XAML view, you can see it over here, it's got the beginning grid tag and an ending grid tag, and when I select one of the tags, you see that there's a gray highlight that shows up. And also if I select the grid here, you'll notice that in the designer portion of the window there's some indicators that I've selected. There's a blue outline and there's some little squares on the left, right, and top and bottom. Those are the sizing handles. In my example, I've got two grids. I've got an outer grid and an inner grid. This inner grid is easier to see the outline selectors because I've set the margin to 90 pixels. That adds a 90 pixel buffer around the edges of the grid. And so when I select it, it's easier for us to see exactly what Visual Studio has for this grid. Now you'll notice that when I select it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Understand layout and child elements3m 15s
-
Use the LetterBox custom project4m 21s
-
Explore the layout panels3m 12s
-
Use the StackPanel5m 42s
-
Use the WrapPanel5m 1s
-
Use the DockPanel4m 42s
-
Use the UniformGrid3m 24s
-
Explore columnar layout with the grid6m 5s
-
Work with grid column and row sizes6m 49s
-
Add grid rows and columns with the designer4m 22s
-
Size grid rows and columns with the designers6m
-
Position grid child elements with the designer4m 13s
-
Make sizeable grid cells with the GridSplitter7m 57s
-
Absolute positioning with the Canvas3m 28s
-
Scrolling content with the ScrollViewer3m 3s
-
Use a TabControl3m 27s
-
-
-
-