2010-01-17 263 views
2

当此页面加载RadScheduler控件未在屏幕上完全呈现,因此下半部分不可见。我怎样才能让它变成页面窗口的剩余空间?Silverlight 3将内容大小设置为页面大小

<navigation:Page> 
<Grid x:Name="LayoutRoot"> 

    <Grid.RowDefinitions> 
     <RowDefinition Height="50" /> 
     <RowDefinition Height="*" /> 
    </Grid.RowDefinitions> 

    <ria:DomainDataSource /> 

    <TextBlock Grid.Row="0" Text="header row" /> 

    <StackPanel Grid.Row="1"> 
     <TextBlock Text="Label" />       

     <telerikScheduler:RadScheduler Height="Auto">   
     </telerikScheduler:RadScheduler> 

    </StackPanel> 

</Grid> 

回答

0

尝试这样的: -

<Grid x:Name="LayoutRoot"> 

    <Grid.RowDefinitions> 
     <RowDefinition Height="50" /> 
     <RowDefinition Height="Auto" /> 
     <RowDefinition Height="*" /> 
    </Grid.RowDefinitions> 

    <ria:DomainDataSource /> 

    <TextBlock Grid.Row="0" Text="header row" /> 

    <TextBlock Text="Label" Grid.Row="1" />       

    <telerikScheduler:RadScheduler Grid.Row="2" /> 

</Grid>