This commit is contained in:
Ieuan Walker
2024-01-15 18:54:32 +00:00
parent b884f13aa5
commit d484c45d59

View File

@@ -1,4 +1,5 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Layouts;
using Microsoft.Maui.Platform;
namespace Mopups.Platforms.Windows
@@ -9,6 +10,13 @@ namespace Mopups.Platforms.Windows
{
}
protected override void ConnectHandler(ContentPanel platformView)
{
base.ConnectHandler(platformView);
PlatformView.SizeChanged += (_, e) => VirtualView.ComputeDesiredSize(e.NewSize.Width, e.NewSize.Height);
}
protected override ContentPanel CreatePlatformView()
{
return new PopupPageRenderer(this);