There is a Grid binding on the window size, and I gradually increase the window, then everything works, and when I click on the full unfolding (I don’t know what to call it - let it be full screen), the Grid remains the same. What can be done?

  • 2
    And why bind the size of the grid to the window? You just need to put it in the window. He himself perfectly adapts to the size of the parent container - Donil

1 answer 1

In this case, it does not need to bind, you can just write

HorizontalAlignment (/Vertical) HorizontalAlignment="Stretch" 

Example: http://msdn.microsoft.com/ru-ru/library/ms751709.aspx

Margin / Padding also described there.

And one more thing: if the grid is just overtightened, then the studio will record all the values ​​right away / right / left indents ... width / length

If this (or some) is removed in the markup, then the grid (or other element) will stretch in one direction or another.