跳转至

IChoiceDialogService 接口

显示带有任意按钮集的对话框,并返回所按按钮的结果。

命名空间: Eremex.AvaloniaUI.Controls.ApplicationServices
程序集: Eremex.Common.Contracts.dll
NuGet 包: Eremex.Common.Contracts

声明

public interface IChoiceDialogService

方法

名称 说明
Show<T>(…) 显示带有给定选项的模态对话框。

备注

补充 IMessageBoxService,后者仅支持固定的按钮集(Ok/OkCancel/YesNo/AbortRetryIgnore/RetryCancel)并返回 DialogResult。此服务适用于按钮标题由应用程序代码定义的情况,例如 "Show log" / "Close"。所有者窗口由底层 IDialogService 通过 IWindowsManager 解析,因此无需在此指定。

另请参阅



* 本页面使用机器翻译技术翻译。

Used in articles