Auto RowDefinitions Grid with ContentControls
Posted
by pipelinecache
on Stack Overflow
See other posts from Stack Overflow
or by pipelinecache
Published on 2010-06-01T08:20:51Z
Indexed on
2010/06/01
8:23 UTC
Read the original article
Hit count: 279
Hi all,
I have a Page with two ContentControls loaded by a RegionManager. A List of items, and a DetailView of these items. The problem is that the grid doesn't apply the auto height what I liked to. So I want to make all the available screen size to grid.row=0. I've added my code below:
<Grid>
<Grid.RowDefinitions>
<RowDefinition MinHeight="300" Height="Auto" />
<RowDefinition Height="200"/>
</Grid.RowDefinitions>
<ContentControl Grid.Row="0" x:Name="ListRegion" ListMededelingRegion}" IsTabStop="False" Focusable="False" Height="Auto" />
<ContentControl VerticalAlignment="Bottom" Grid.Row="1" x:Name="DetailRegion" cal:RegionManager.RegionName="{x:Static com:RegionNames.DetailRegion}" IsTabStop="False" Focusable="False" />
</Grid>
© Stack Overflow or respective owner