New startup window.

This commit is contained in:
Burak Kaan Köse
2026-03-05 10:12:03 +01:00
parent d45d3faa89
commit db5ecd60e4
46 changed files with 1857 additions and 234 deletions
+40
View File
@@ -0,0 +1,40 @@
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();
}
}