2010-01-17 173 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> 
相關問題