开发者

CollectionViewSource is filtered?

开发者 https://www.devze.com 2022-12-21 20:01 出处:网络
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.

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

精彩评论

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