I have a simple window.
In this window, I have a grid with several rows, the height of which I adjust dynamically.
Now I want to make Window.Height = sum of Grids Rows.
It seems that the problem is that the grid itself fills the entire window (this is normal), but in this grid the area occupied by the rows occupies an empty space.
What should I do?
For example, I have a witchβs height = 100 and 200, and the whole grid has a height of 500, but should have 300.
source share