我们在Silverlight GridSplitter中观察到一个小错误。
<Grid x:Name="LayoutRoot" Background="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="GreenYellow"/>
<sdk:GridSplitter Grid.Row="1" Height="5" HorizontalAlignment="Stretch" />
<Grid Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="AntiqueWhite"/>
</Grid>
让我描述重现此错误的工作流程。 1.向上/向下拖动分割器并将鼠标按在其上(不要松开鼠标)。 2.按键盘上的(Windows徽标键+ M)以最小化浏览器。 3.立即释放鼠标。 4.切换回浏览器,观察GridSplitter现在位于浏览器屏幕的底部。而且它不再像预期的那样工作了。
是否有任何方法可以解决此问题以及GridSplitter这种奇怪行为的原因。据我所知,Silverlight的未来版本不会发生。我们如何修复这个错误?是否有可能通过某种行为?