Request information on Xaml Controls Gallery (XCG) app resizing #839
-
Hello - I am trying to write a WinUI 3 app using Winrt/C++ and using the XCG as a paradigm. One thing I'm still trying to understand is how the XCG elements wrap and prevent the app window from being resized below the point at which elements would be clipped. I know that a VisualStateManager is used in most xaml pages to specify breakpoint triggers (eg: Breakpoint640Plus), which can result in actions being taken (such as rearranging elements as a window is resized smaller). But I don't understand what prevents the apps from resizing below a certain width (or height). Is there somebody on your team that can explain this or point out places in the code I can look for answers? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @rcohn! Thanks for your question. You should have a look at the Window resizing sample. It shows you how you can set the minimum size of your app using |
Beta Was this translation helpful? Give feedback.
Hi @rcohn! Thanks for your question. You should have a look at the Window resizing sample. It shows you how you can set the minimum size of your app using
ApplicationView.SetPreferredMinSize(new Size { Width = 300, Height = 200 });
The docs for this API can be found here. I hope this answers your question!