Handling user settings with MVVM
问题 Currently i'm developing an WPF application with the MVVM-light framework. On this moment i'm setting my settings as shown in the next example code in my viewmodel: private string _property public string Property { get { return _property; } set { if (_property != value) { _property = value; Settings.Default.Property = value; RaisePropertyChanged("Property"); } } } I save my settings on application exit: protected override void OnExit(ExitEventArgs e) { Settings.Default.Save(); } Everything