I want to create two grids in the WPF Page. One Grid
need scrollbar or scroll viewer. Another Grid
is static.The grids are placed one by one in the page. How can I create and set the scroll in first Grid
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
<ScrollViewer>
<StackPanel>
...
</StackPanel>
</ScrollViewer>
回答2:
Sounds like this user justs wants the first grid to scroll, such as:
<StackPanel>
<ScrollViewer>
<Grid>
</Grid>
</ScrollViewer>
<Grid>
</Grid>
</StackPanel>