开发者

CollectionViewSource is filtered?

What's the easiest way to know if the view is currently filtered or not? I want a clearAll type of command that is only is displayed when there is something to cl开发者_开发技巧ear.

Thanks!

Berryl


The best way would be to compare the count of items in the View with the count of items in the source collection. If they are not the same, the view is filtered.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜