User Tools

Site Tools


notes:uwp:appsettings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
notes:uwp:appsettings [2016/11/10]
admin
notes:uwp:appsettings [2017/02/23]
admin
Line 1: Line 1:
 ====== Settings in UWP ====== ====== Settings in UWP ======
- 
-You can store the following WinRT data types in //LocalSettings//: Boolean, UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Char, String, DateTimeOffset, TimeSpan, Guid, Point, Size, and Rect as well as single-dimension arrays (max 8 KB) of these data types. 
- 
-Note: The //Values// property returns an //ApplicationDataContainerSettings// object, which implements the //IObservableMap<String, Object>// interface, which offers a //MapChanged// event that is raised whenever an item in the collection changes. 
  
 Example: Store, read, and remove simple settings using **ApplicationData.Current.LocalSettings**: Example: Store, read, and remove simple settings using **ApplicationData.Current.LocalSettings**:
Line 225: Line 221:
   * Select the key name you just created. The data is shown as byte arrays.   * Select the key name you just created. The data is shown as byte arrays.
  
 +Notes
 +
 +  * You can store the following WinRT data types in //LocalSettings//: Boolean, UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Char, String, DateTimeOffset, TimeSpan, Guid, Point, Size, and Rect as well as single-dimension arrays (max 8 KB) of these data types.
 +
 +  * The //Values// property returns an //ApplicationDataContainerSettings// object, which implements the //IObservableMap<String, Object>// interface, which offers a //MapChanged// event that is raised whenever an item in the collection changes.
 +
 +  * You can also use roaming settings: //ApplicationData.Current.RoamingSettings//
  
 Links Links
notes/uwp/appsettings.txt ยท Last modified: 2020/08/26 (external edit)