Skip to content

ApplicationSettings

Rico Suter edited this page Jul 8, 2015 · 5 revisions
  • Package: MyToolkit
  • Platform: Implemented in PCL but supports only WP7SL, WP8SL, WinRT, UWP and WPF

Provides methods to load and save application settings. The class internally uses the appropriate mechanism of the current platform, for example the settings classes of Windows Phone and WinRT (also supports roaming settings). It is useful to access settings in PCL libraries (e.g. a library with view models for multiple targets).

This is a PCL class which only works for WinRT, UWP, WPF, WP7SL and WP8SL.

Info: The methods can only save and load basic types, use StorageApplicationSettings to store and retrieve complex objects or serialize/deserialize the objects to a string prior to using the methods.

Methods:

  • GetSetting()
  • SetSetting()
  • HasSetting()
  • RemoveSetting()
Clone this wiki locally