feat: update PopConfirm to support non-button triggers and rename Tap to Click

This commit is contained in:
Dong Bin
2025-04-18 17:59:07 +08:00
parent 67025dca9c
commit 5ba8789cf7
3 changed files with 10 additions and 2 deletions

View File

@@ -22,6 +22,14 @@
CancelCommand="{Binding Path=CancelCommand}" >
<Button Content="Hello World"></Button>
</u:PopConfirm>
<TextBlock Text="Non-button control as main element" Margin="0 16" />
<u:PopConfirm PopupHeader="Header" PopupContent="Content"
TriggerMode="Click"
Placement="BottomEdgeAlignedLeft"
ConfirmCommand="{Binding ConfirmCommand}"
CancelCommand="{Binding Path=CancelCommand}" >
<TextBlock Text="Hello World" />
</u:PopConfirm>
<TextBlock Text="Asynchronized command support" Margin="0 16" />
<u:PopConfirm PopupHeader="Header" PopupContent="Content"
ConfirmCommand="{Binding AsyncConfirmCommand}"