I basically want to create something like this:
So, a user can add/remove items from the list and edit them in the red panel below the list. When the item is selected, the changes can be made in the panel.
Then, the changes can be either saved or canceled with one of the buttons below. User cannot select another item in the list without explicitly cancelling the changes.
How to do this? I only see the option of making the red panel a separate control and changing its DataContext
manually on ListView.SelectedItem
changes. The red panel's DataContext
is a special wrapper on a ListView
's item which has 'save' and 'cancel' options. ListView
is set to IsEnabled = False
so that its SelectedItem
doesn't change when editing is in progress.
How would you do this?