Show / Hide Table of Contents

Property PersistenceId

| Edit this page View Source

PersistenceId

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX