Property PersistenceId
| Edit this page View SourcePersistenceId
Gets or sets a unique ID used for saving and restoring window size and position across sessions.
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.