Files
Wino-Mail/Wino.Mail.WinUI/WelcomeWindow.xaml.cs
T
Burak Kaan Köse db5ecd60e4 New startup window.
2026-03-05 10:12:03 +01:00

41 lines
941 B
C#

using Microsoft.Extensions.DependencyInjection;
using Microsoft.UI.Windowing;
using Microsoft.UI.Xaml.Controls;
using Wino.Core.Domain.Interfaces;
using WinUIEx;
namespace Wino.Mail.WinUI;
public sealed partial class WelcomeWindow : WindowEx
{
public Frame GetRootFrame() => RootFrame;
public WelcomeWindow()
{
InitializeComponent();
MinWidth = 980;
MinHeight = 900;
Title = "Wino Mail";
this.SetIcon("Assets/Wino_Icon.ico");
ConfigureWindowChrome();
}
private void ConfigureWindowChrome()
{
AppWindow.TitleBar.ExtendsContentIntoTitleBar = true;
Width = 980;
Height = 720;
//this.IsResizable = false;
//this.IsMaximizable = false;
this.CenterOnScreen();
var themeService = WinoApplication.Current.Services.GetService<INewThemeService>();
themeService?.UpdateSystemCaptionButtonColors();
}
}