title: MVVM: CollectionView in ViewModel or CollectionViewSource in xaml?
body: <p>I'm developing a WPF application using the MVVM pattern and I need to display a list of items in a ListView (with filtering), with the fields of the selected item displayed in a Master/Detail view. I'm torn between the following two ways of doing this:</p>
  
  <ol>
  <li>Exposing a CollectionView in my ViewModel, and binding to this.</li>
  <li>Exposing a plain IList in my ViewModel, and using CollectionViewSource to create the CollectionView in XAML.</li>
  </ol>
  
  <p>Is there an accepted way of doing this? Any thoughts on the best way?</p>