title bar shell content

This commit is contained in:
Burak Kaan Köse
2025-10-03 22:12:27 +02:00
parent accffe8ef6
commit 20ee4c3567
6 changed files with 29 additions and 14 deletions
+11
View File
@@ -7,6 +7,7 @@ using Wino.Core.Domain.Interfaces;
using Wino.Core.WinUI;
using Wino.Core.WinUI.Interfaces;
using Wino.Messaging.Client.Mails;
using Wino.Messaging.UI;
using Wino.Views;
using WinUIEx;
@@ -19,6 +20,8 @@ public sealed partial class ShellWindow : WindowEx, IWinoShellWindow
public ShellWindow()
{
WeakReferenceMessenger.Default.Register<TitleBarShellContentUpdated>(this);
InitializeComponent();
MinWidth = 420;
@@ -56,4 +59,12 @@ public sealed partial class ShellWindow : WindowEx, IWinoShellWindow
{
PreferencesService.IsNavigationPaneOpened = !PreferencesService.IsNavigationPaneOpened;
}
public void Receive(TitleBarShellContentUpdated message)
{
if (MainShellFrame.Content is AppShell shellPage)
{
ShellTitleBar.Content = shellPage.TopShellContent;
}
}
}