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

Add grid rows and columns with the designer

From the course: Windows Presentation Foundation: 2 Layout

Start my 1-month free trial

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…

Contents