Skip to content

IChoiceDialogService interface

Shows a dialog with an arbitrary set of buttons and returns the result of the pressed one.

public interface IChoiceDialogService

Members

name description
Show<T>(…) Shows a modal dialog with the given choices.

Remarks

Complements IMessageBoxService, which supports only fixed button sets (Ok/OkCancel/YesNo/AbortRetryIgnore/RetryCancel) and returns DialogResult. This service is meant for cases where button captions are defined by application code, for example "Show log" / "Close". The owner window is resolved by the underlying IDialogService through IWindowsManager, so it does not have to be specified here.

See Also