跳转至

IDialogService 接口

从 ViewModel 代码中显示应用程序对话框,使 ViewModel 无需引用任何窗口类型即可向用户提问。承载 ViewModel 的 View 通过 ViewLocatorAttribute 定位,所有者窗口由实现选择。

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

声明

public interface IDialogService

方法

名称 说明
ShowDialog<T>(…) 在模态对话框中显示 ViewModel,并在用户关闭对话框后返回。

另请参阅



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

Used in articles