在Virtualizing WrapPanel上使用Ctrl + A或Shift +箭头时出现问题 [英] Problem when using Ctrl+A or Shift + arrows on Virtualizing WrapPanel

查看:136
本文介绍了在Virtualizing WrapPanel上使用Ctrl + A或Shift +箭头时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有WrapPanel的列表框上实现了数据虚拟化(现在我正在使用Telerik VirtualizingWrapPanel),我有一个对象列表作为ItemsSource,列表一直存在但是当一个对象在视图中我检索它时图像(以及当前页面的所有图像)并显示它,当一个项目不在视图中时我删除了图像,以减少内存使用。

在列表实现中我有:



I implemented data virtualization on a listbox with a WrapPanel (right now I'm using Telerik VirtualizingWrapPanel), I have a list of objects as ItemsSource, the list exists all the time but when an object is in the view I retrieve it's image(and all the images of the current page) and show it, when an item is not in the view I remove the image, to reduce memory usage.
On the list implementation I have:

object IList.this[int index]
{
    get { 
            RetrievePageOf(index);
            return this[index]; 
        }
}





使用telerik VirtualizingWrapPanel我遇到以下问题:

1.当我选择对象X并使用shift +向下箭头时,我看到列表正在尝试从0到X检索所有对象,即使它当时只显示12个项目。

2.当使用Ctrl + A(选择所有对象)时,我不希望列表检索所有对象,只检索当前在视图上的对象。



你能告诉我怎样才能只检索视图中的项目吗?

也许你可以推荐一个解决这些问题的不同WrapPanel。



谢谢。



With telerik VirtualizingWrapPanel I have the following problems:
1. when I'm selecting object X and using shift + down arrow I see that the list is trying to retrieve all objects from 0 to X even when it is showing only 12 items at that time.
2. when using Ctrl +A (to select all objects) I don't want the list to retrieve all objects but only the ones that currently on the view.

Can you please advise what can I do to retrieve only the items that in the view?
Maybe you can recommend on a different WrapPanel that solves these problems.

Thanks.

推荐答案

这篇关于在Virtualizing WrapPanel上使用Ctrl + A或Shift +箭头时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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