How to get Items count from CollectionViewSource?

后端 未结 6 683
鱼传尺愫
鱼传尺愫 2021-01-17 09:19

I am using CollectionViewSource to filter the records displayed in a ListBox. The xaml follows.

   

        
6条回答
  •  不知归路
    2021-01-17 09:43

    var count = DataGrid.ItemsSource.OfType().Count();
    
        

    提交回复
    热议问题