Skip to content

Comments

Add spec documentation for AppWindow placement APIs#6235

Draft
guimafelipe wants to merge 1 commit intomainfrom
user/felipeda/placementapidocs
Draft

Add spec documentation for AppWindow placement APIs#6235
guimafelipe wants to merge 1 commit intomainfrom
user/felipeda/placementapidocs

Conversation

@guimafelipe
Copy link
Contributor

Summary

  • Adds spec document for the experimental AppWindow placement APIs (GetCurrentPlacement, SetCurrentPlacement, SaveCurrentPlacement, PersistedStateId, PlacementRestorationBehavior)
  • Documents DisplayArea.GetMetricsFromWindowId
  • Includes conceptual how-to guide, API pages, and IDL details following the spec template

Fixes #5896

AppWindowPlacementDetails details = appWindow.GetCurrentPlacement();

// Restore placement with specific parameters
appWindow.SetCurrentPlacement(placementInfo);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What placementInfo it is? Never mentioned it before.

`PersistedStateId`, you can save all of their placements at once:

```csharp
AppWindow.SaveCurrentPlacementForAllPersistedStateIds();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's confused that when the placement should and will be restored. Will it keep saving which like EnableSaveCurrentPlacementForAllPersistedStateIds or just save at once at the end? The names are confused too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing documentation and release plans for new AppWindow placement APIs (experimental)

2 participants