Wpf listbox selecteditem not updating

Posted by / 16-Jun-2017 14:54

Wpf listbox selecteditem not updating

In my view there is a grid view which contains different columns. Now problem is that for the List Box column, Selected Item get works fine but set doesn't.Here is my View code Now Selected Item for Items list works fine.

I am working on a WPF application and following MVVM.I have written a small WPF application to edit a config file. The content of the second List Box depends on the selected item of the first List Box and should update whenever another item in the first List Box is selected. Then I sent the application to my colleague so he could try the application.I realized this using the Selection Changed event of the first List Box to set the Items Source of the second one. On his machine the second List Box was not updating (when he first selected an item from the first List Box the second one changed as expected but not if he then selected a other item).this happen to me when I add a custum template to a List Box or List View and that the controls within the List Box Item handle the click event themselve.For example if you have a radio button like this The Selected Item will not be set when you actualy click on the radio button because the radio button will handle the click event and will not bubble it up so the List Box may change it's selection.

wpf listbox selecteditem not updating-41wpf listbox selecteditem not updating-37wpf listbox selecteditem not updating-66

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

One thought on “wpf listbox selecteditem not updating”

  1. You Date has Christian Dating, Asian Dating, Jewish Singles, Black Dating, Senior Singles, Gay Dating. Simply browse online personals to find your match, view photos, send a wink or message.