Need to scroll one WPF Grid

2020-02-11 08:40发布

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?

标签: wpf scroll grid
2条回答
相关推荐>>
2楼-- · 2020-02-11 09:07
<ScrollViewer>  
    <StackPanel>  
        ...   
    </StackPanel>  
</ScrollViewer>  
查看更多
趁早两清
3楼-- · 2020-02-11 09:11

Sounds like this user justs wants the first grid to scroll, such as:

<StackPanel>
    <ScrollViewer>
        <Grid>
        </Grid>
    </ScrollViewer>
    <Grid>
    </Grid>
</StackPanel>
查看更多
登录 后发表回答