compositecollection

Why is CompositeCollection not Freezable?

I am writing an application using the MVVM pattern. I am providing data to my view by setting my view's DataContext property to an instance of my ViewModel. Generally I just use Binding from there and go about my way. Recently, I tried to implement a ComboBox with an "extra" element beyond the collection my ViewModel provides that say...

DataGrid crash on CompositeCollection Edit

I have a DataGrid. It's ItemsSource is bound to the ModelView's CompositeCollection through the ViewModel. The CompositeCollection consists of 2 ObservableCollections. The display on the grid is fine. I am able to see the collection. However, when I try to edit one of the rows, I get a crash (NotSupportedException) of: "'EditItem' is no...

How To Bind ListBoxItems to two ObservableCollection

Hello, everybody. My problem takes above one month of my time. Sorry for my English. I hope that i can explain the problem. I have a trouble while Binding ListView Control to two ObservableCollection. It's must be a simple thing, but I can't resolve it. My ListView has a Template like: <ListView Name="lstClients" DataContext="myObsColl...

How to handle a CompositeCollection with CollectionView features?

Is there a way to get notified when CompositeCollection's current location changes? I need to have the CompositeCollection monitored by a CollectionView, any ideas are welcommed. ...

Any idea on how to sort a CompositeCollection?

I have a CompositeCollection that consists of ObservableCollections of two types: Companies and Contacts. Contact has a property FullName while Company has a property Name. I want to apply sorting so the collections are mixed by their types but sorted by their name, example: Itzhak Perlman John Doe Microsoft Sarah Moore StackOverflow W...

CompositeCollection breaks ComboBox AutoComplete-Feature?

push Hello everybody! I'm using a WPF ComboBox with IsTextSearchEnabled="True" (Autocomplete) and want to bind its ItemsSource-Property to a CompositeCollection. Unfortunately, the Combobox doesn't seem to recognize the items provided by a CollectionContainer within the CompositeCollection. They are shown, but not selected by AutoCompl...

Iterating through items of CompositeCollection

Consider the code: ObservableCollection<string> cities = new ObservableCollection<string>(); ObservableCollection<string> states = new ObservableCollection<string>(); ListBox list; cities.Add("Frederick"); cities.Add("Germantown"); cities.Add("Arlington"); cities.Add("Burbank"); cities.Add("Newton"); cities.Add("Watertown"); cities.Ad...