Replies: 4 comments 9 replies
-
|
Joining in with the same question but with a bit different context and some fruitless experiments I've tried. I want to make my app only minimizable but not resizable and not maximizable. Ideally both on Windows and Mac, but I wanted to get it working on Windows first. Based on examples, I tried the following approaches. Platforms/Windows/App.xaml.cs: IsResizable works, now borders cannot be resized. However, the Maximize button and control menu Maximize command is still present. Tried the same code in an overridden method: The same result, only Then I tried to move the same code to MauiProgram.cs: The same result, only I even tried messing with Interop and SetWindowLong: which worked fine for WinForms apps (although not needed there because you can configure it in Properties). But MAUI window seems to ignoring all my attempts. How do I make maximize go away? Why MAUI is not honoring the flags that worked fine in WPF? None of the titlebar settings seem to work. |
Beta Was this translation helpful? Give feedback.
-
|
I'm running into the same problem, I have tried the same code you have tried. This is obviously an issue. Please Fix! |
Beta Was this translation helpful? Give feedback.
-
|
As our project was green field, we’ve had to change some of the window behaviour due to the restrictions placed on the MAUI window container running on Windows and macCatalyst. I can imagine this will be a deal breaker for those wanting to migrate over to MAUI without incurring loss of this key windowing functionality. Did however manage to force one of my windows to be on top by implementing As well as preventing the closure of a window by hooking into the OnClosed #if WINDOWS It would be nice to hear from the MAUI team. Find out what there plans are or better still - get a working solution from them :) |
Beta Was this translation helpful? Give feedback.
-
|
i have a problem, when i try to copy and paste the code that you put here it dont works i dont really know why, i put the code in another pc and it works fine :) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
We have a requirement for an app that when started, shouldn't be closed through the user interface. Yes its an anit-pattern but due to the critical nature of the app it must remain running and ready to delegate messages.
Using MAUI the app displays 2 different windows concurrently - targeting Windows 10, 11 & macCatalyst
How can I;
Have tried several angle of attack including handler mappings and ConfigureLifecycleEvents without success as MAUI overrides or completly ignores. The AppWindow presenter when it is a OverLappedPresenter seems to have all the properties I'm looking for but none seem to do anything concrete when set.
Any solutions or guidenance much appreciated
Beta Was this translation helpful? Give feedback.
All reactions