Lottery/Lottery/App.xaml.cs
onyx-and-iris 72e7728e8f rename UKLotto to Lotto to match the national-lottery website
update the launch size of the app window to match the new layout.
2026-02-26 00:03:07 +00:00

30 lines
704 B
C#

namespace Lottery
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new AppShell();
}
protected override Window CreateWindow(IActivationState? activationState)
{
var window = base.CreateWindow(activationState);
const int newWidth = 600;
const int newHeight = 750;
window.Width = newWidth;
window.Height = newHeight;
// Optional: Set minimum size to prevent window from being too small
window.MinimumWidth = 400;
window.MinimumHeight = 600;
return window;
}
}
}