MVVM: CollectionView in ViewModel or CollectionViewSource in xaml?

I do the former (expose CollectionView from the VM) but what really matters is where your filtering logic is. That should definitely be in the VM so that it can be tested, even if the view has to wire up the CollectionViewSource to the VM. That said, I don’t think there’s anything particularly nasty or anti-MVVM about exposing a CollectionView from your VM.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)