How to use AppWindow #18338
ArchieCoder
started this conversation in
General
Replies: 2 comments 2 replies
-
@ArchieCoder the var window = new Window();
window.AppWindow.SetPresenter(...); To access the main (primary) window of your app, you can make the |
Beta Was this translation helpful? Give feedback.
1 reply
-
@ArchieCoder careful with the code above. If your monitor layout changes your window could end up off-screen. Winuiex handles that and only restores for last known layout |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the blog post of 5.4.5 https://platform.uno/blog/5-4/#:~:text=September%2026,%202024.%20We%20are%20introducing%20over%20290%20new%20additions, there is a mention of New AppWindow APIs to get/set the position and size as well as move, resize and show/hide windows of the app.
AppWindow does not compile in Skia.
Regarding WinUI, it does not work with the code below. WinUIEx by @dotMorten works.
Beta Was this translation helpful? Give feedback.
All reactions