Actually everything is simple, there is a ListBox which is bound via an ItemsSource to an ObservableCollection. There is also a PropertyGrid that binds to the SelectedItem of this ListBox. So here's the thing next, when I change something in the PropertyGrid, then in the Item ListBoxʻa these changes immediately appear (all the same). But if I choose another Item in the ListBox, then all changes disappear, the previous ones are returned. There is a suspicion that this PropertyGrid is odd (cancels changes), but could not google it. Can someone tell me where to dig?
- perhaps an error in the code, show the xaml markup and your code - Gardes
- The whole problem was validation by Catel. I removed the [Model] attribute from the ObservableCollection and everything worked as a watch. - Artem Hohryakov
|