Silverlight 3使内容大小达到页面大小

时间:2010-01-17 12:56:18

标签: silverlight telerik-scheduler

当此页面加载时, RadScheduler 控件无法在屏幕上完全呈现,因此下半部分不可见。如何使其大小到页面窗口中的剩余空间?

<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>

1 个答案:

答案 0 :(得分: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>