Skip to content

IChoiceDialogService.Show<T> method

Shows a modal dialog with the given choices.

public T Show<T>(string message, string? caption, IReadOnlyList<DialogChoice<T>> choices)
parameter description
T The result type.
message The message text.
caption The window caption.
choices The available choices. The order matches the button order.

Return Value

The result of the pressed button, or default if the dialog was closed without a choice (by the caption button or Escape).

See Also