Toastify 1.2.0

dotnet add package Toastify --version 1.2.0
                    
NuGet\Install-Package Toastify -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Toastify" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Toastify" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Toastify" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Toastify --version 1.2.0
                    
#r "nuget: Toastify, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Toastify@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Toastify&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Toastify&version=1.2.0
                    
Install as a Cake Tool
████████╗ ██████╗  █████╗ ███████╗████████╗██╗███████╗██╗   ██╗
╚══██╔══╝██╔═══██╗██╔══██╗██╔════╝╚══██╔══╝██║██╔════╝╚██╗ ██╔╝
   ██║   ██║   ██║███████║███████╗   ██║   ██║█████╗   ╚████╔╝ 
   ██║   ██║   ██║██╔══██║╚════██║   ██║   ██║██╔══╝    ╚██╔╝  
   ██║   ╚██████╔╝██║  ██║███████║   ██║   ██║██║        ██║   
   ╚═╝    ╚═════╝ ╚═╝  ╚═╝╚══════╝   ╚═╝   ╚═╝╚═╝        ╚═╝   

Toastify

Toast notifications for WPF

Toastify allows you to create and display notifications in WPF applications.

Nuget install

1. Install via nuget:

Toastify

Install-Package Toastify

2. Create ToastViewModel class

using Toastify;

Notifier notifier = new Notifier(cfg =>
{
    cfg.PositionProvider = new WindowPositionProvider(
        parentWindow: Application.Current.MainWindow,
        corner: Corner.TopRight,
        offsetX: 10,  
        offsetY: 10);

    cfg.LifetimeSupervisor = new TimeAndCountBasedLifetimeSupervisor(
        notificationLifetime: TimeSpan.FromSeconds(3),
        maximumNotificationCount: MaximumNotificationCount.FromCount(5));

    cfg.Dispatcher = Application.Current.Dispatcher;
});

3. Use provided messages

using Toastify;

notifier.ShowInformation(message);
notifier.ShowSuccess(message);
notifier.ShowWarning(message);
notifier.ShowError(message);

Documentation

  • Relesae notes Release notes, description of new features, bug fixes and breaking changes.

Creating new issues

Before you create new issue, please check the documentation, because many features and options are already there. (https://github.com/cesarpaarra/Toastify/tree/master/Docs)

If there is still a problem, please create new issue/question filling following informations. If it's possible, please provide a sample code to reproduce issue.

Contributors

Toastify represents a significant evolution of the original Toastify library. This project has been developed as a fork of its previous version, and it has been specifically designed to be compatible with and take advantage of the features of the newer versions of .NET, starting from .NET 7 onwards.

During the development of Toastify, we have preserved the essence and main functionality of Toastify, while also making significant updates to adapt it to modern development practices in the latest versions of .NET. In addition, we have conducted a review and made slight modifications to the library's structure, aiming to optimize its efficiency, scalability, and ease of use.

We wish to express our deepest gratitude and recognition to the original authors of Toastify for their vision and dedication in creating such a valuable tool. Their efforts have laid the groundwork for the development of Toastify. Furthermore, we thank all those who have contributed to the initial project and its subsequent versions. Their contributions have been fundamental in shaping this new version.

Product Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 2,351 7/3/2024
1.1.0 243 7/3/2024
1.0.1 336 11/20/2023
1.0.0 213 11/19/2023