0
我試圖使用Silverlight擴展器控件,並且擴展器的內容在展開時不會均勻地調整到內容的其餘部分。有任何想法嗎?這是什麼樣子Silverlight Expander Control不會均勻擴展
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<toolkit:Expander ExpandDirection="Right" Grid.Column="0" IsExpanded="True">
<toolkit:Expander.Header>
<TextBlock Text="Title" Foreground="Black" />
</toolkit:Expander.Header>
<toolkit:Expander.Content>
<Controls:Grid x:Name="LayoutRoot" ShowGridLines="True">
<ContentControl Navigation:ContentArea.AreaName="shellView" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
<ContentControl x:Name="loaderView" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
</Controls:Grid>
</toolkit:Expander.Content>
</toolkit:Expander>
<ContentControl Grid.Column="1" x:Name="testPage" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
</Grid>
結果是擴展顯示可用面積的30%,但我想讓它顯示50%
你能告訴我你膨脹機的風格嗎?謝謝 – 2011-05-10 01:39:49
我只是使用默認值。如果我將樣式設置爲Style =「{x:Null}」,我仍然只能得到大約20-30,對於擴展器,我認爲它是一個預設大小。 – 2011-05-10 03:20:39