How to disable window resize after the release of WinUI 3 1.0 Preview 3? #1694
-
After upgrading my project to Preview 3, I can see that AppWindowConfiguration was removed, so how should I disable window resizing now? Do I have to go back to the old DllImport methods again? |
Beta Was this translation helpful? Give feedback.
Answered by
martibravo
Nov 1, 2021
Replies: 1 comment 6 replies
-
This is quite easy to do with the new AppWindow APIs: Add the following items to your MainWindow class:
and in the MainWindow contructor:
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
JohnCido
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is quite easy to do with the new AppWindow APIs:
Add the following items to your MainWindow class:
and in the MainWindow contructor: