mirror of
https://github.com/onyx-and-iris/Lottery.git
synced 2026-02-26 22:39:10 +00:00
30 lines
704 B
C#
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;
|
|
}
|
|
}
|
|
}
|