Table of Contents

ToastsHelper 类

命名空间
ClassIsland.Core.Helpers.UI
程序集
ClassIsland.Core.dll

Toast 显示辅助类

public static class ToastsHelper
继承
ToastsHelper
继承成员

方法

ShowErrorToast(Control, string)

显示一条错误等级的 Toast 消息

public static void ShowErrorToast(this Control control, string message)

参数

control Control

包含在要显示消息的容器中的控件

message string

要显示的消息

ShowErrorToast(Control, string, Exception)

显示一条错误等级的 Toast 消息,并将异常信息作为正文内容。

public static void ShowErrorToast(this Control control, string title, Exception exception)

参数

control Control

包含在要显示消息的容器中的控件

title string

要显示的错误标题

exception Exception

异常内容

ShowSuccessToast(Control, string)

显示一条成功等级的 Toast 消息

public static void ShowSuccessToast(this Control control, string message)

参数

control Control

包含在要显示消息的容器中的控件

message string

要显示的消息

ShowToast(Control, ToastMessage)

显示一条 Toast 消息\

public static void ShowToast(this Control control, ToastMessage message)

参数

control Control

包含在要显示消息的容器中的控件

message ToastMessage

要显示的消息

ShowToast(Control, string)

显示一条 Toast 消息

public static void ShowToast(this Control control, string message)

参数

control Control

包含在要显示消息的容器中的控件

message string

要显示的消息

ShowWarningToast(Control, string)

显示一条警告等级的 Toast 消息

public static void ShowWarningToast(this Control control, string message)

参数

control Control

包含在要显示消息的容器中的控件

message string

要显示的消息