I was just curious if it was possible to bind 2 different views to the same collection. One view displaying the contents of one group (PropertyGroupDescription
) and one view displaying the other.. the target of the property group is a Boolean
.
Asked
Active
Viewed 194 times
0

Soner Gönül
- 97,193
- 102
- 206
- 364

SilverX
- 1,509
- 16
- 18
1 Answers
1
You may bind your views to two different CollectionViewSources that use the same collection as their Source.

Clemens
- 123,504
- 12
- 155
- 268
-
Say I use: "var blah = (ListCollectionView)CollectionViewSource.GetDefaultView(MyCollection);" and do searches based on ICommand input? Do you know if the new CollectionViewSource is based off the default or if it's an entirely new presentation? – SilverX Jan 23 '13 at 07:50
-
Sorry, I don't know. I'd recommend to create different CollectionViewSources in XAML. – Clemens Jan 23 '13 at 08:33
-
I was quick to reply anyway. I knew I had read it somewhere before, for anyone interested it's here on MSDN: http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.getdefaultview.aspx under remarks – SilverX Jan 23 '13 at 08:49