내 프로젝트에서 ScrollViewer를 사용하여 일부 긴 정보를 표시합니다.WP7 ScrollViewer 버그 콘텐츠 높이> 2000px
나는 다음과 같이 사용합니다
<Grid Grid.Row="1" Height="630">
<ScrollViewer Background="Red" Grid.Row="1">
<Grid>
<Rectangle Height="3000" Fill="LightBlue" Width="440"/>
</Grid>
</ScrollViewer>
</Grid>
그러나, 불행하게도 rectagnle가 완전히 표시되지 않는 경우있는 ScrollView 막대의 수직 높이> 2000
난 단지와 함께,에서 ScrollViewer의 내용으로 그리드없이 테스트 한 Rectangle 결과는 같습니다.
그리고 너비에 버그가 발생합니다.
어떤 해결 방법이 있습니까? 어떻게 처리할까요?
이 post은 수정하지 않고 동일한 문제입니다.
고맙습니다. ... 지미
시험 전체 XAML은 다음과 같습니다 scrollable textblock :
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<Grid Grid.Row="1" Height="630">
<ScrollViewer Background="Red" Grid.Row="1">
<Grid>
<Rectangle Height="3000" Fill="LightBlue" Width="440"/>
</Grid>
</ScrollViewer>
</Grid>
</Grid>
고정 된 최대 크기 값 2048이 있습니까? 사실, 내 프로젝트에서, Rectange 장소는 그리드 패널이며, 일부 어린이 컨트롤이 포함되어 있습니다. –
감사합니다. 충돌 된 격자를 더 많이 분할하려고합니다. –