You have to bind your first ListBox SelectedItem to object of Task model and add event handler for SelectionChanged inside the this event you have to populate your logs by selected Task model also you have to implement INotifyPropertyChanged in your class.
You have to bind your first ListBox SelectedItem to object of Task model and add event handler for SelectionChanged. Inside the this event you have to populate your logs by selected Task model also you have to implement INotifyPropertyChanged in your class.
Your Task class need to implement INotifyPropertyChanged interface so that as soon as there is any change in the underlying data it can tell WPF UI that something has changed now update/refresh your controls agains.
Your task class need to implement INotifyPropertyChanged msdn.microsoft.com/en-us/library/ms74369....
It looks to me like the second binding should not work at all, as the DataContext is an enumerable of Tasks and the enumerable itself has no property called Logs. You could try working with IsSynchronizedWithCurrentItem and a binding to the current item: You could also bind to the SelectedItem of the other ListBox but this introduces a redundant dependency between the controls. Also note that if you change any property in your data-objects you need to implement the interface mentioned by the other answerers, INotifyPropertyChanged.
I have it all working now. I implemented INotifyPropertyChanged, although that didn't solve the problem. I am now using the MVVM pattern.
This helped...the NoRM library I was using didn't have a SelectionChanged event. I created a View Model and was able to convert those Models to ObservableCollections. Now I'm just setting the Logs control DataContext on selection changed for the Task class.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.