Wpf combobox itemssource not updating

Rated 3.94/5 based on 740 customer reviews

To answer your question: from my point of view your suggestion is almost an imperative if one applies the MVVM pattern on comboboxes. Michael Schlegel Hi Mark, Great posts, I read your post about MVVM List Box filtering, what i´m looking for is something in between.

If i for instance have an application with a number of Combo boxes bound with a Collection View and i want the selected item in one of them to affect a filter in another Combo Box. I´ve added a filter by just using my Collection View.

I have tried Selected Item, Selected Index, Text and nothing works for me.The approach I went with uses a Collection View which is a class included with .NET that encapsulates a list and the concept of a current item as well as supporting the INotify Property Changed interface. I set the Is Sychronized With Current Item to true to allow us to track the current item on the Items Source.Here is my xaml: Here is my Web Service completed method, where I populate the Items Source (which works) and then I try to set the Selected Item (which doesn't update the UI, but my Selected Item raise property event does fire) This problem is driving me absolutely bonkers!I also tried setting up a binding to Selected Index, but that doesn't work either.

Leave a Reply