Trying to figure out a quick way to have a listbox show the current value as follows where
listbox is bound to a ObservableCollection<TypeA>
and TypeA.ToString() return TypeA.Name
and selecting an item in the listbox shows the TypeA fields in some textboxes for editing
Updating TypeA.Name does not update the values shown in listbox ?
How do i notify the listbox to get the current values ?
updating the listbox while the values are changing in the textbox will be even better !!
thanks
You can do this by binding the textboxes to the selected item in the listbox, like this:
When you change the text in the textboxes the selected item in the listbox will update.