hello,
I'm having a problem with my code
I wrote this code in a userControl tag:
<UserControl
.
.
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Grid>
<GridDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height='*' />
</GridDefinitions>
<stackPannel Grid.Row="0">
<lable/>
<Button Content="Refresh" Command="{Binding RefreshCommand}"/>
</StackPannel>
<ScrollViewer Grid.Row="1">
<StackPannel>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList1}"/>
</telerik:RadExpender>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList2}"/>
</telerik:RadExpender>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList3}"/>
</telerik:RadExpender>
</StackPannel>
</ScrollViewer>
</Grid>
</UserControl>
the result is that my scroll view fill only about half of the screen instead of the whole screen, there is no problem with its width only its height is wrong.
funny thing that happen: at run time if I click on the first exdpender's button in order to set IsExpended to false
the scroll view suddenly get the right height and fill the whole area.
what is wrong with this code?
I tried change stackPannel to DouckPannel,Grid, set the height...
how can I make the scrollview know it's height if I do not know the length of the ItemSource on each radexpender
thank you