Is there any way to get height of the grid in wpf, created dynamically at run time? I don't want to set fix height of grid, so i am not set height of grid.
I have already tried for ActualHeight and DesiredSize.Height, but it doesn't work to get height of the grid.
I have declared one grid in xaml file;
<grid name="grd_Dispaly">
Then in code behind, i have generated rows and columns dynamically and add it in to the grid.
After adding each row in grid, i want to measure height of the grid.