Implemented initial version for popping out window for rendering and compose pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user