feat: also works for non-modal.

This commit is contained in:
rabbitism
2024-03-27 18:32:25 +08:00
parent 13e5629b21
commit 002d851070

View File

@@ -84,6 +84,11 @@ public partial class OverlayDialogHost
}
this.Children.Add(control);
_layers.Add(new DialogPair(mask, control, false));
if (control.IsFullScreen)
{
control.Width = Bounds.Width;
control.Height = Bounds.Height;
}
control.Measure(this.Bounds.Size);
control.Arrange(new Rect(control.DesiredSize));
SetToPosition(control);