ApplicationSettingsBase
Base settings class for client applications.
Derived classes should use this to uniquely identify separate instances of settings classes.
Fires when the value of a setting is changed. (INotifyPropertyChanged implementation.)
Fires when the value of a setting is about to change. This is a cancellable event.
Fires when settings are retrieved from a provider. It fires once for each provider.
Fires when Save() is called. This is a cancellable event.
protected ApplicationSettingsBase()
Default constructor without a concept of "owner" component.
Constructor that takes an IComponent. The IComponent acts as the "owner" of this settings class. One
of the things we do is query the component's site to see if it has a SettingsProvider service. If it
does, we allow it to override the providers specified in the metadata.
Convenience overload that takes the settings key
Convenience overload that takes the owner component and settings key.
Used in conjunction with Upgrade - retrieves the previous value of a setting from the provider.
Provider must implement IApplicationSettingsProvider to support this.
Fires the PropertyChanged event.
Fires the SettingChanging event.
Fires the SettingsLoaded event.
Fires the SettingsSaving event.
Causes a reload to happen on next setting access, by clearing the cached values.
Calls Reset on the providers.
Providers must implement IApplicationSettingsProvider to support this.
Called when the app is upgraded so that we can instruct the providers to upgrade their settings.
Providers must implement IApplicationSettingsProvider to support this.