Implemented initial version for popping out window for rendering and compose pages

This commit is contained in:
Burak Kaan Köse
2026-04-11 01:04:59 +02:00
parent d5c121ce24
commit 4cb08f0a98
22 changed files with 628 additions and 79 deletions
@@ -0,0 +1,15 @@
using Microsoft.UI.Xaml;
using Wino.Mail.WinUI;
using Wino.Mail.WinUI.Models;
namespace Wino.Mail.WinUI.Interfaces;
public interface IHostedPopoutSource
{
bool CanPopOutCurrentContent();
FrameworkElement? GetCurrentHostedContent();
HostedPopoutDescriptor CreatePopoutDescriptor(IPopoutClient client);
FrameworkElement DetachHostedContent();
void OnHostedContentPoppedOut(FrameworkElement content, HostedContentPopoutWindow window, HostedPopoutDescriptor descriptor);
void OnHostedPopoutClosed(FrameworkElement content, HostedPopoutDescriptor descriptor);
}
@@ -0,0 +1,13 @@
using System;
using Wino.Mail.WinUI.Models;
namespace Wino.Mail.WinUI.Interfaces;
public interface IPopoutClient
{
bool SupportsPopOut { get; }
event EventHandler<PopOutRequestedEventArgs> PopOutRequested;
event EventHandler<PopoutHostActionRequestedEventArgs> HostActionRequested;
HostedPopoutDescriptor GetPopoutDescriptor();
void OnPopoutStateChanged(bool isPoppedOut);
}