private void PropertyGrid_OnPropertyValueChanged(object _sender, PropertyValueChangedEventArgs _e) { SessionConfig sessionConfig = DataContext as SessionConfig; Debug.Assert(sessionConfig != null); sessionConfig.Save(); }