如果我在layoutRoot Grid中使用MinWidth / minHeight,预览网格线将停止工作

时间:2009-03-20 12:53:29

标签: silverlight silverlight-3.0

我做错了什么,或者这是混合3 / Silverlight 3预览中的错误

                                                

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

    <Grid x:Name="SideBar" HorizontalAlignment="Left" MinHeight="768" MinWidth="100" Grid.Column="0" Grid.RowSpan="2">
        <Grid.Projection>
            <PlaneProjection RotationX="0" RotationY="0" CenterOfRotationX="0"/>
        </Grid.Projection>
        <Border BorderBrush="#FF000000" BorderThickness="1,1,1,1">
            <Border.Background>
                <LinearGradientBrush EndPoint="3.129,0.55" StartPoint="-1.356,0.198">
                    <GradientStop Color="#C80900FF" Offset="0"/>
                    <GradientStop Color="#00FFFFFF" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>

    </Grid>

</Grid>

1 个答案:

答案 0 :(得分:0)

为什么不在RowDefinition中设置MinHeight ...就像......

<RowDefinition MinHeight="768"  Height="*"/>