需要滚动一个 WPF Grid [英] Need to scroll one WPF Grid

查看:21
本文介绍了需要滚动一个 WPF Grid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 WPF 页面中创建两个网格.一个 Grid 需要滚动条或滚动查看器.另一个Grid 是静态的.网格在页面中一个一个放置.如何在第一个 Grid 中创建和设置滚动?

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?

推荐答案

<ScrollViewer>  
    <StackPanel>  
        ...   
    </StackPanel>  
</ScrollViewer>  

这篇关于需要滚动一个 WPF Grid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆