Silverlight does not contain a default presentation concept. When you request a control in Silverlight to bind to a collection, it really binds to the collection, it does not bind to the default view.
As a result, I donβt think there can be a direct and full port of your extension method. Some reorganization of your MVVM implementation will be necessary. I did not come up with the concept of a collection of instances of the view model, so I'm not quite sure what would be appropriate in your case.
A few approaches that I have seen with CollectionViewSource are either to have a CollectionViewSource defined in Xaml and bind its Source to something in the ViewModel. Alternatively, the ViewModel provides the CollectionViewSource property and binds the View xaml to its View proeprty.
source share