1 Star 0 Fork 0

摩月流云/MaterialDesignInXamlToolkit

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ISnackbarMessageQueue.cs 4.66 KB
一键复制 编辑 原始数据 按行查看 历史
using System;
namespace MaterialDesignThemes.Wpf
{
public interface ISnackbarMessageQueue
{
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
void Enqueue(object content);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
void Enqueue(object content, object actionContent, Action actionHandler);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
/// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
void Enqueue<TArgument>(object content, object actionContent, Action<TArgument> actionHandler, TArgument actionArgument);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="neverConsiderToBeDuplicate">Subsequent, duplicate messages queued within a short time span will
/// be discarded. To override this behaviour and ensure the message always gets displayed set to <c>true</c>.</param>
void Enqueue(object content, bool neverConsiderToBeDuplicate);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
/// <param name="promote">The message will promoted to the front of the queue.</param>
void Enqueue(object content, object actionContent, Action actionHandler, bool promote);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
/// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
/// <param name="promote">The message will be promoted to the front of the queue and never considered to be a duplicate.</param>
void Enqueue<TArgument>(object content, object actionContent, Action<TArgument> actionHandler, TArgument actionArgument, bool promote);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
/// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
/// <param name="promote">The message will be promoted to the front of the queue.</param>
/// <param name="neverConsiderToBeDuplicate">The message will never be considered a duplicate.</param>
void Enqueue<TArgument>(object content, object actionContent, Action<TArgument> actionHandler,
TArgument actionArgument, bool promote, bool neverConsiderToBeDuplicate);
/// <summary>
/// Queues a notificaton message for display in a snackbar.
/// </summary>
/// <param name="content">Message.</param>
/// <param name="actionContent">Content for the action button.</param>
/// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
/// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
/// <param name="promote">The message will promoted to the front of the queue.</param>
/// <param name="neverConsiderToBeDuplicate">The message will never be considered a duplicate.</param>
void Enqueue(object content, object actionContent, Action<object> actionHandler, object actionArgument,
bool promote, bool neverConsiderToBeDuplicate);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/Jobc/MaterialDesignInXamlToolkit.git
git@gitee.com:Jobc/MaterialDesignInXamlToolkit.git
Jobc
MaterialDesignInXamlToolkit
MaterialDesignInXamlToolkit
master

搜索帮助