Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Silverlight 应用程序,在网格布局中包含一个滚动查看器。
当我向下移动滚动条并使用关闭按钮关闭此网格时,每当我重新打开网格时,滚动条都会保留在底部。
有没有办法可以将滚动条重置到顶部位置?
你好 supriya khamesra,
请试试这个。请将您的网格放在滚动查看器中,然后在网格选择更改后编写您的波纹管代码。
grdDetail.ScrollToVerticalOffset(0d);
OR
grdDetail.ScrollToTop();