DataBinding WPF EditableChildCollection to a ListBox

DataBinding WPF EditableChildCollection to a ListBox

Old forum URL: forums.lhotka.net/forums/t/6518.aspx


Luzius posted on Thursday, February 26, 2009

Hi,

I have a question about DataBinding a Child-Collection to a ListBox:

I have an editable root object TaskList which has some properties and also a editable ChildCollection TasksCollection which contains editable children of type Task.

I used a CslaDataProvider to bind the whole TaskList to a Grid. I set the ObjectInstance in code.

The Grid contains a ListBox which displays all Tasks. Each task has a CheckBox to finish the Task. Depending on whether the Task is finished I display different icons using data triggers.

 

Everything is displayed correctly when it's loaded, but the Icon is not changed when the CheckBox is checked or unchecked.

The TaskList does not fire the PropertyChanged event, but it fires the ChildChanged event.

 

Since I'm new to CSLA and WPF, I'm pretty lost at the moment.

Could anyone give me a hint?

Thanks Luzius 

Copyright (c) Marimer LLC