All Projects → rafallopatka → Toastnotifications

rafallopatka / Toastnotifications

Licence: lgpl-3.0
Toast notifications for WPF allows you to create and display rich notifications in WPF applications. It's highly configurable with set of built-in options like positions, behaviours, themes and many others. It's extendable, it gives you possibility to create custom and interactive notifications in simply manner.

Projects that are alternatives of or similar to Toastnotifications

Aura.ui
A Library with a lot of Controls for AvaloniaUI
Stars: ✭ 114 (-77.51%)
Mutual labels:  nuget, wpf, xaml, component, control
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (-88.76%)
Mutual labels:  xaml, control, nuget, wpf
Mahapps.metro.simplechildwindow
A simple child window for MahApps.Metro
Stars: ✭ 339 (-33.14%)
Mutual labels:  gui, wpf, xaml
Controlzex
Shared Controlz for WPF and ... more
Stars: ✭ 561 (+10.65%)
Mutual labels:  wpf, xaml, control
Handycontrol
Contains some simple and commonly used WPF controls
Stars: ✭ 3,349 (+560.55%)
Mutual labels:  wpf, xaml, control
Wpf Notifyicon
NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform
Stars: ✭ 329 (-35.11%)
Mutual labels:  wpf, xaml, ui-components
Fluent.ribbon
WPF Ribbon control like in Office
Stars: ✭ 1,895 (+273.77%)
Mutual labels:  wpf, xaml, control
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-31.56%)
Mutual labels:  wpf, xaml, control
Dock
A docking layout system.
Stars: ✭ 204 (-59.76%)
Mutual labels:  gui, xaml, control
Code Samples
Just some code samples for MahApps and other experiments...
Stars: ✭ 205 (-59.57%)
Mutual labels:  gui, wpf, xaml
Panandzoom
Pan and zoom control for Avalonia.
Stars: ✭ 159 (-68.64%)
Mutual labels:  gui, xaml, control
SimpleDialogs
💬 A simple framework to help displaying dialogs on a WPF app
Stars: ✭ 24 (-95.27%)
Mutual labels:  xaml, wpf, messages
Core2d
A multi-platform data driven 2D diagram editor.
Stars: ✭ 475 (-6.31%)
Mutual labels:  gui, wpf, xaml
Simple Music Player
Simple Music Player - SimpleMP - Keeps it simple and plays your music
Stars: ✭ 298 (-41.22%)
Mutual labels:  wpf, xaml
Csconsoleformat
.NET C# library for advanced formatting of console output [Apache]
Stars: ✭ 296 (-41.62%)
Mutual labels:  wpf, xaml
Sharpvectors
SharpVectors - SVG# Reloaded: SVG DOM and Rendering in C# for the .Net.
Stars: ✭ 315 (-37.87%)
Mutual labels:  wpf, xaml
Elmish.wpf
Static WPF views for elmish programs.
Stars: ✭ 287 (-43.39%)
Mutual labels:  wpf, xaml
Wpf.notifications
WPF notifications UI controls (as seen in VS Code)
Stars: ✭ 318 (-37.28%)
Mutual labels:  notifications, wpf
Ammyui
Ammy language repository
Stars: ✭ 356 (-29.78%)
Mutual labels:  wpf, xaml
Arcgis Runtime Samples Dotnet
Sample code for ArcGIS Runtime SDK for .NET – UWP, WPF, Xamarin.Android, Xamarin.iOS, and Xamarin.Forms
Stars: ✭ 274 (-45.96%)
Mutual labels:  wpf, xaml
 _______              _   _   _       _   _  __ _           _   _                         ___  
|__   __|            | | | \ | |     | | (_)/ _(_)         | | (_)                       |__ \
   | | ___   __ _ ___| |_|  \| | ___ | |_ _| |_ _  ___ __ _| |_ _  ___  _ __  ___   __   __ ) |
   | |/ _ \ / _` / __| __| . ` |/ _ \| __| |  _| |/ __/ _` | __| |/ _ \| '_ \/ __|  \ \ / // /
   | | (_) | (_| \__ \ |_| |\  | (_) | |_| | | | | (_| (_| | |_| | (_) | | | \__ \   \ V // /_
   |_|\___/ \__,_|___/\__|_| \_|\___/ \__|_|_| |_|\___\__,_|\__|_|\___/|_| |_|___/    \_/|____|

ToastNotifications v2

Toast notifications for WPF

ToastNotifications allows you to create and display rich notifications in WPF applications. It's highly configurable with set of built-in options like positions, behaviours, themes and many others. It's extendable, it gives you possibility to create custom and interactive notifications in simply manner.

Build status Code Climate Issue Count Nuget install Nuget install LGPL v3 license

Demo

demo

Usage

Example code

1 Install via nuget:

ToastNotifications and ToastNotifications.Messages

Install-Package ToastNotifications
Install-Package ToastNotifications.Messages

ToastNotifications v2 is plugin oriented.

Nugget "ToastNotifications" is a core, which contains only main mechanisms for creating and displaying notifications. Predefined messages and other not key functionalities are provided by separate nuggets.

Nugget ToastNotifications.Messages contains basic messages like error, information, warning, success. It's not required in case you want to create your own messages.

2 Import ToastNotifications.Messages theme in App.xaml

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/ToastNotifications.Messages;component/Themes/Default.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

3 Create Notifier instance

using ToastNotifications;
using ToastNotifications.Lifetime;
using ToastNotifications.Position;
/* * */
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;
});

4 Use provided messages

using ToastNotifications.Messages;
/* * */
notifier.ShowInformation(message);
notifier.ShowSuccess(message);
notifier.ShowWarning(message);
notifier.ShowError(message);

5 Dispose notifier when it's no longer needed

/* * */
notifier.Dispose();

Documentation

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

  • Upgrading from v1 ToastNotifications v2 is completely new implementation and it's not compatibile with version 1, follow migration instructions to upgrade to the new version.

  • Configuration ToastNotifications v2 has lots of configuration options for its position, lifetime, messages and many others, this document describe them all.

  • Creating custom notifications This document describes how to create your own notifications.

  • Strongly named assemblies ToastNotifications v2 assembies are signed. Read this doc for more details.

Contributors

Andy Li (https://github.com/oneandy)

B. Micka (https://github.com/b-mi)

CuiLiang (https://github.com/cuiliang)

BrainCrumbz (https://github.com/BrainCrumbz)

Fischjoghurt (https://github.com/Fischjoghurt)

Francois Botha igitur (https://github.com/igitur)

Jan M. (https://github.com/Pantheas)

Johannes Jidel (https://github.com/jidel)

Kostiantyn (https://github.com/dualbios)

Krzysztof Zmorzyński (https://github.com/ZmorzynskiK)

Robin Krom Lakritzator (https://github.com/Lakritzator)

Uwy (https://github.com/Uwy)

William David Cossey (https://github.com/wdcossey)

Creating new issues

Before you create new issue, please check the documentation, because many features and options are already there. (https://github.com/raflop/ToastNotifications/tree/master-v2/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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].