I need two expanders in a grid but I need the bottom expander to fill the available space. I can do this by letting the height go to Stretch, but then when I collapse the expander the content animates towards the middle not the top as expected.
Any idea how to have both expanders collapse upward, have the content collapse upward, yet have the content fill the screen when expanded?
Any help would be awesome!
Any idea how to have both expanders collapse upward, have the content collapse upward, yet have the content fill the screen when expanded?
<
UserControl
xmlns:d
=
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
x:Class
=
"SilverlightApplication6.MainPage"
d:DesignWidth
=
"1024"
d:DesignHeight
=
"768"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadExpander
Header
=
"Header"
VerticalAlignment
=
"Top"
IsExpanded
=
"True"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Rectangle
Height
=
"100"
Fill
=
"Red"
/>
<
StackPanel
Orientation
=
"Horizontal"
VerticalAlignment
=
"Center"
Grid.Row
=
"1"
>
<
telerik:RadButton
Content
=
"Button1"
/>
<
telerik:RadButton
Content
=
"Button2"
/>
</
StackPanel
>
</
Grid
>
</
telerik:RadExpander
>
<
telerik:RadExpander
Header
=
"Header"
IsExpanded
=
"True"
Grid.Row
=
"1"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
/>
<
telerik:RadDataPager
Grid.Row
=
"1"
/>
</
Grid
>
</
telerik:RadExpander
>
</
Grid
>
</
UserControl
>
Any help would be awesome!