【问题标题】:Is it possible to override CollectionViewSource.GetDefaultView to return my implementation of ICollectionView?是否可以覆盖 CollectionViewSource.GetDefaultView 以返回我的 ICollectionView 实现?
【发布时间】:2012-09-06 15:44:41
【问题描述】:

是否可以覆盖 CollectionViewSource.GetDefaultView 以返回我对特定集合类型的 ICollection 视图的实现?

【问题讨论】:

    标签: wpf collectionviewsource icollectionview


    【解决方案1】:

    我不认为你可以默认这样做,但你可以使用 CollectionViewSource.CollectionViewType 来使特定的 CollectionViewSource 返回特定的 CollectionView 类型。

    【讨论】:

      猜你喜欢
      • 2018-09-10
      • 1970-01-01
      • 1970-01-01
      • 2019-08-21
      • 2017-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多