I have a class, for example FooBar, that is databound to a Window, displaying all kinds of good stuff. It includes an ObservableCollection<Color>, for example shadesOfPink, that displays in a ListBox. This works fine, until I want to bind 3 TextBoxes
to the properties ScR, ScG, and ScB of the selected Color. They can display the properties correctly, but when the user changes a value, the Color is not updated in the ListBox until the ListBox is clicked on to change the selection. I want the Color
to update as soon as the TextBox loses focus. Is there a way to do this?
I have tried binding the TextBoxes to SelectedItem and binding directly to the properties but nothing worked.
I am using C# 2010.
View Complete Post