79651753

Date: 2025-06-03 18:36:03
Score: 0.5
Natty:
Report link

For anyone curious, you can now just set the MaximumHeight, MinimumHeight, MaximumWidth, and MinimumWidth to a static value so that they won't change. something like this:

        protected override Window CreateWindow(IActivationState? activationState)
        {
            const int newWidth = 1280;
            const int newHeight = 640;
            var window = new Window(new AppShell())
            {
                Width = newWidth,
                Height = newHeight
            };

            window.MaximumHeight = newHeight;
            window.MinimumHeight = newHeight;
            window.MaximumWidth = newWidth;
            window.MinimumWidth = newWidth;
            
            return window;
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Keebbzz