绑定后滚动到长列表选择器中的特定项目 [英] Scroll to particular item in longlist selector after binding

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

问题描述

我正在使用 Longlistselector 绑定聊天消息.绑定后我需要显示最后一条消息.但默认情况下,它是最重要的消息.我尝试滚动到最后一项(ScrollTo(lastmessage))",但它不起作用.任何人都可以提供解决方案.

I am using Longlistselector to bind the chat messages. After binding i need to show the last message. But by default it is coming to top message. I tryed scroll to last item "(ScrollTo(lastmessage))" but it is not working. can any one provide the solution.

推荐答案

其他人通过在 ListBox 上的 ScrollIntoView() 之前调用 UpdateLayout() 取得了成功.

Others have found success by calling UpdateLayout() before ScrollIntoView() on a ListBox.

这篇关于绑定后滚动到长列表选择器中的特定项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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