BringIntoView虚拟化TreeView [英] BringIntoView Virtualizing TreeView

查看:70
本文介绍了BringIntoView虚拟化TreeView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然可以滚动树视图的滚动查看器,但是当树视图进行虚拟化和回收并且treeviewitem在scrollviewer窗口之外时,似乎没有任何可能的方法可以滚动到特定的treeviewitem.

例如,设置treeviewitem对象属性IsSelected = true将选择滚动查看器窗口之外的项目,但是由于onselection事件是无法实现与Windows Form的sureVisible方法相同的行为.由于treeviewitem不存在而未触发.

这是正确的吗?而且,有人知道它是否肯定在.Net 4中添加吗?


While it is possible to scroll a treeview's scroll viewer, there doesn't seem to be any way possible to scroll to a specific treeviewitem when the treeview is virtualizing and recycling and the treeviewitem is outside of the scrollviewer window.

For example, setting an treeviewitem object property IsSelected = true will select item outside of the scroll viewer window, but there is no way to effect the same behavior as in Windows Form's EnsureVisible method as the onselection event is not fired because the treeviewitem does not exist.

Is this correct? And, does anyone know if this is definitely added in .Net 4?

Thanks

推荐答案

尝试显示的附加行为在这里的最后一个答复:
Try the attached behavior shown in the last reply here:


这篇关于BringIntoView虚拟化TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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