Implementing ICollectionViewLiveShaping

前端 未结 3 863
-上瘾入骨i
-上瘾入骨i 2021-02-05 14:36

How is ICollectionViewLiveShaping implemented for the purpose of filtering? Is it something like:

public ICollectionView WorkersEmployed { get; set;         


        
3条回答
  •  遥遥无期
    2021-02-05 14:49

    I experimented with this and it looks like it is not designed for what you (and me) want: Automatic filtering when you change filtering conditions. It filters automatically when some properties of DataGrid's item source changes, but not when filter conditions change - you must call ICollectionViewSource.Refresh manually.

提交回复
热议问题