feat: polish popup open.

This commit is contained in:
Dong Bin
2025-04-18 12:44:55 +08:00
parent 5da5e0626a
commit 713c1731c9
2 changed files with 52 additions and 9 deletions

View File

@@ -6,8 +6,10 @@
<Setter Property="Template">
<ControlTemplate TargetType="u:PopConfirm">
<Panel>
<ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
<Popup IsOpen="True"
<ContentPresenter Name="PART_ContentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
<Popup
IsLightDismissEnabled="True"
OverlayInputPassThroughElement="{Binding #PART_ContentPresenter}"
Name="{x:Static u:PopConfirm.PART_Popup}"
Placement="Bottom" >
<Border Theme="{DynamicResource CardBorder}">