How does the Windows community toolkit gallery app persists its previous window location? #524
-
It looks like the Windows Community Toolkit Gallery app is able to keep its previous window size and location when relaunched. Does anyone know how it is achieved in WinUI 3, especially across multiple screens and when these screens do not have same DPI settings? I cloned this repo but didn't seem to find any implementation around this. Much appreciated if someone can point me to the right location in the code. The background I came from is that WinUI 3 does not seem to provide a set of handy APIs like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Gallery app from the Store is still using UWP, which comes with this behavior out of the box. IIRC WinUiEx has a few helpers to do this for WinUI apps. |
Beta Was this translation helpful? Give feedback.
The Gallery app from the Store is still using UWP, which comes with this behavior out of the box.
IIRC WinUiEx has a few helpers to do this for WinUI apps.