Skip to content

Feature Request: ApplicationData.GetForUnpackaged() overload that gives unpackaged apps a way to declare its default ApplicationData #6934

Description

WinUI is developing a window placement persistence feature, and we need a place to store window placement data for unpackaged apps.

Today for apps with package identity we can call ApplicationData.GetDefault(). But the equivalent for unpackaged apps, ApplicationData.GetForUnpacakged(publisher, product) requires those "publisher" and "product" strings only the app can provide.

Request: Can we invent a way for an unpackaged app to declare its identity for the process that allows components like WinUI to acquire a "default" ApplicationData scoped to that app?

For example:

// app code
ApplicationData.SetDefaultForUnpackaged(ApplicationData.GetForUnpackaged("Contoso", "minesweeper"));

// winui code
ApplicationData.GetForUnpackaged(); // new API!

Other ideas?

  • ApplicationData (or some other static type) could have "DefaultPublisher" and "DefaultProduct" fields
  • App exe could declare its publisher and product in its manifest

Activity

  1. ghost1372 commented on Nov 3, 2026

    @ghost1372
  2. added
    area-ApplicationData
    and removed on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-ApplicationDatafeature proposal

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions