Problems setting Grid Height [modified]
-
Hi All, I have a grid defined as follows
<Grid MaxHeight="768">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="55"/>
<RowDefinition Height="55"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
</Grid>However when populating this grid, the last rows are not visible since there is a lot of data to display. I know that the Auto means take as much space as you need but, isnt the MaxHeight property define for the grid taking into account? (Grid's maxheight is window height) I would expect the auto rows to take as much space as it remains available Since this was not working I tried to set the auto rowdefinition as follows:
<RowDefinition Height="Auto" MaxHeight="250"/>
I am guessing that the height preference will be, starting for higher preference: MinHeight>MaxHeight>Heigth This does not work either. Eventhough I have set up the MaxHeight for that row, it will take as much space as it needs to display it contents, hence other rows are not visible. Any help will be greatly appreciated. Thanks
modified on Thursday, September 3, 2009 6:55 PM