ActiveItem not being set for ListView selection

Topics: Bugs, Feature Requests
Aug 26, 2011 at 4:24 AM

Hi there,

In my project, I have a ItemsViewModel inheriting from Conductor<ItemViewModel>.Collection.OneActive, which is associated with a ItemsView view. 

In the ItemsView, I have a WPF ListView control, with the x:Name of "Items". Binding of the ItemsSource seems to happen in the convention based manner.

However, when changing the selected item, the ActiveItem property on my ItemsViewModel is never set. I thought that the convention manager would automatically hook up to the selection changed event of the ListView.

Is this an oversight, or the expected behaviour? I understand there would probably be quirks if the selection mode allowed multiple items to be selected, but in this instance, it does not.

Just wondering, as I was using a TabControl elsewhere in the project in the same manner, and ActiveItem was being set correctly without me having to do any wiring.


Aug 26, 2011 at 5:34 AM

UPDATE: User error! Works fine.