You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wraps any trigger control and shows a small popup with a header, body, and Confirm / Cancel buttons before executing a command. Supports Click and/or Focus trigger modes.
Custom icon in the popup header area (defaults to a warning icon)
HandleAsyncCommand
bool
true
When true, waits for async commands to complete before closing
PopConfirmTriggerMode values
Value
Description
Click
Opens on pointer press / button click
Focus
Opens when the wrapped control receives focus
Click | Focus
Opens on either interaction
With cancel callback
<PopConfirmPopupHeader="Discard changes?"PopupContent="Your unsaved changes will be lost."ConfirmCommand="{Binding DiscardCommand}"CancelCommand="{Binding KeepEditingCommand}">
<ButtonContent="Discard" />
</PopConfirm>
Custom icon
<PopConfirmPopupHeader="Send message"PopupContent="Are you sure you want to send this?">
<PopConfirm.Icon>
<PathIconData="{DynamicResource SendRegular}"Width="16"Height="16" />
</PopConfirm.Icon>
<ButtonContent="Send"Theme="{DynamicResource AccentButtonTheme}" />
</PopConfirm>
Focus trigger (e.g. form field confirmation)
<PopConfirmPopupHeader="Confirm email"PopupContent="Send a verification link to this address?"TriggerMode="Focus"ConfirmCommand="{Binding SendVerificationCommand}">
<TextBoxText="{Binding Email}"PlaceholderText="Email address" />
</PopConfirm>
Programmatic control
popConfirm.IsDropdownOpen=true;// openpopConfirm.IsDropdownOpen=false;// close