Property PersistenceId
| Edit this page View SourcePersistenceId
Declaration
public string? PersistenceId { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The ID must be set before the window activates. The window size and position will only be restored if the monitor layout hasn't changed between application settings. The property uses ApplicationData storage, and therefore is currently only functional for packaged applications. By default the property uses ApplicationData storage, and therefore is currently only functional for packaged applications. If you're using an unpackaged application, you must also set the PersistenceStorage property and manage persisting this across application settings.