DialogChoice<T> 类¶
对话框中的单个选项:按钮标题以及按下该按钮时返回的结果。
命名空间: Eremex.AvaloniaUI.Controls.ApplicationServices
程序集: Eremex.Common.Contracts.dll
NuGet 包: Eremex.Common.Contracts
声明¶
类型参数¶
| 名称 | 说明 |
|---|---|
| T | 结果类型。 |
公共成员¶
| 名称 | 说明 |
|---|---|
| DialogChoice(…) | 初始化 DialogChoice 类的新实例。 |
| Caption { get; } | 按钮标题。 |
| Dock { get; set; } | 按钮停靠到的一侧。 |
| Index { get; set; } | 按钮在其所在一侧中的顺序。 |
| IsCancel { get; set; } | 由 Escape 键调用的取消按钮。 |
| IsDefault { get; set; } | 由 Enter 键调用的默认按钮。 |
| Result { get; } | 按下按钮时返回的结果。 |
另请参阅¶
* 本页面使用机器翻译技术翻译。