You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: Is PersistenceId necessary in WinAppSdk/WinUI3? #178
I'm experimenting with an app that uses WinUIEx.
Almost of all are already implemented within WinAppSdk expect for min width, min height and persistence id. While min width and height can be set using WndProc when window tries to get the info with message code WM_GETMINMAXINFO, I couldn't find any alternatives for persistence id.
I looked into the WinUIEx source code and I find actual store/restore routine here:
If I understand this correctly, this stores WINDOWPLACEMENT struct data in case dev customizes that data in their code using SetWindowPlacement.
If I don't set that, is it necessary to set?
Activity
dotMorten commentedon Aug 3, 2024
It’s not necessary. You only need to set it if you want the app to launch where it was closed.