IChoiceDialogService.Show<T> 方法¶
显示带有给定选项的模态对话框。
命名空间: Eremex.AvaloniaUI.Controls.ApplicationServices
程序集: Eremex.Common.Contracts.dll
NuGet 包: Eremex.Common.Contracts
声明¶
类型参数¶
| 名称 | 说明 |
|---|---|
| T | 结果类型。 |
参数¶
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string |
消息文本。 |
| caption | string? |
窗口标题。 |
| choices | IReadOnlyList<DialogChoice<T>> |
可用的选项。顺序与按钮顺序一致。 |
返回值¶
| 类型 | 说明 |
|---|---|
T |
所按按钮的结果;如果对话框在未作选择的情况下关闭(通过标题栏按钮或 Escape 键),则为 default。 |
另请参阅¶
* 本页面使用机器翻译技术翻译。