Merge pull request #647 from irihitech/ursa_host

Make UrsaWindow/UrsaView's built in OverlayDialogHost part of logical tree.
This commit is contained in:
Zhang Dian
2025-04-11 14:10:15 +08:00
committed by GitHub
4 changed files with 201 additions and 57 deletions

View File

@@ -38,7 +38,7 @@
IsVisible="{TemplateBinding IsTitleBarVisible}"
Content="{TemplateBinding RightContent}" />
</Grid>
<u:OverlayDialogHost IsModalStatusReporter="True" />
<u:OverlayDialogHost Name="{x:Static u:UrsaView.PART_DialogHost}" IsModalStatusReporter="True" />
</Panel>
</Panel>
</ControlTemplate>

View File

@@ -74,7 +74,10 @@
RightContent="{Binding $parent[u:UrsaWindow].RightContent}" />
<VisualLayerManager>
<Panel>
<u:OverlayDialogHost IsModalStatusReporter="True" IsTopLevel="True" />
<u:OverlayDialogHost
Name="{x:Static u:UrsaWindow.PART_DialogHost}"
IsModalStatusReporter="True"
IsTopLevel="True" />
<u:WindowResizer
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"