Property PersistenceStorage
| Edit this page View SourcePersistenceStorage
Gets or sets the persistence storage for maintaining window settings across application settings.
Declaration
public static IDictionary<string, object>? PersistenceStorage { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Remarks
For a packaged application, this will be initialized automatically for you, and saved with the application identity using ApplicationData. However for an unpackaged application, you will need to set this and serialize the property to/from disk between application sessions. The provided dictionary is automatically written to when the window closes, and should be initialized before any window with persistence opens.