列表框未滚动到最后一项 [英] List box is not scrolling to the last item

查看:72
本文介绍了列表框未滚动到最后一项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hello all,

Hello all,


我正在开发一个Windows Phone 8应用程序,因为我使用列表框来显示数据。我有一个要求,例如一旦页面启动,用户应该导航到列表框的最后一项。对于此要求,使用scroolintoview方法,如LsbSample.ScrollIntoView(LsbSample.LastOrDefault)。
它正在转移到最后一项但不完全。它显示最后一项约60%,但剩余40%我需要手动滚动列表框。

I am developing a Windows Phone 8 application, in that I am using List box to display the data. I have requirement like once the page is launched user should navigate to the last item of the list box. For this requirement used scroolintoview method like LsbSample.ScrollIntoView(LsbSample.LastOrDefault). It is moving to the last item but not fully. It is showing last item around 60% but for remaining 40% I need to manually scroll the list box.


任何人都可以帮我解决这个问题。

Can any one help me to resolve this issue.


先谢谢。

Santosh Kumar Kotta

Santosh Kumar Kotta

推荐答案

这可能是一个小错误。您可以尝试滚动到滚动查看器高度的底部吗?
It's likely a small bug. Can you try scrolling to the bottom of the scrollviewer's height instead?


这篇关于列表框未滚动到最后一项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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