使用ScrollBar选择ListBoxItem [英] Selecting ListBoxItem using ScrollBar

查看:66
本文介绍了使用ScrollBar选择ListBoxItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

所以我一直在使用
PathListBoxUtils
集合,以创建一个类似于
中所示的轮播控件
.toolbox教程

So I've been working with the PathListBoxUtils collection in order to create a carousel control somewhat similar to that demonstrated in the .toolbox tutorial.

我一直想要的是添加滑块/滚动条控件以便滚动路径列表框中的项目。起初我以为我可以通过将PathListBox的Start值数据绑定到滚动条的值来解决问题,但问题
这里的Start值只与路径长度确定的项容量有关,而不是总PathListBoxItems的索引。

What I've been trying to get right is to add a slider/scrollbar control in order to scroll through the items in the pathlistbox. At first I thought I could solve the problem by databinding the PathListBox's Start value to that of the scrollbar, but the problem here is that the Start value relates only to the item capacity determined by the lenght of the path, and not the index of total PathListBoxItems.

所以我现在想的是从PathListBoxUtils集合中设置PathListBoxScrollBehaviour ScrollSelectCommand,然后使用ScrollBar本身来选择实际的ListBoxItems。我只是不确定如何做到这一点。所以如果有人
可以给我一些指示,那就太好了。除非你当然可以建议一些替代方法。

So my thinking now would be to set up a PathListBoxScrollBehaviour ScrollSelectCommand from the PathListBoxUtils collection, then use the ScrollBar itself to select the actual ListBoxItems. I'm just not sure how this can be done. So if anybody can give me some pointers here, that would be great. Unless of course you can suggest some alternative approach.

提前致谢!

 

推荐答案

你好,



我很高兴 看到你的问题,类似的解决方案就是我在博客上发布的博客,这可能会帮助你做很多事情

Hello ,

I am glad to  see your question, similar solution is what I have blogged on my blog and that might help you a lot in doing very stuff

这是我的博客,

http://www.expression-blend.com

http://blog.procesium.us

我希望它帮助你!

问候,


这篇关于使用ScrollBar选择ListBoxItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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