Mantin.Controls.Wpf.Notification 6.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mantin.Controls.Wpf.Notification --version 6.0.0
NuGet\Install-Package Mantin.Controls.Wpf.Notification -Version 6.0.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="Mantin.Controls.Wpf.Notification" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mantin.Controls.Wpf.Notification --version 6.0.0
#r "nuget: Mantin.Controls.Wpf.Notification, 6.0.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.
// Install Mantin.Controls.Wpf.Notification as a Cake Addin
#addin nuget:?package=Mantin.Controls.Wpf.Notification&version=6.0.0

// Install Mantin.Controls.Wpf.Notification as a Cake Tool
#tool nuget:?package=Mantin.Controls.Wpf.Notification&version=6.0.0

Use the included "Demo Application" for details on features and code example. The Notification controls includes the following:

  • Help Balloon

    • MVVM Support.
    • Has two types, "Help" and "Information". Each has its own icon and color scheme.
    • Recognizes multiple screen boundaries and will react accordingly.
    • Properties:
      • Title - Optional bold, underlined title of the balloon.
      • Caption
      • BalloonType (Help/Information/Warning)
      • MaxHeight - Will auto display vertical scrollbars if content exceeds height.
      • MaxWidth - Sets the maximum width of the control. This can be helpful if "AutoWidth" stretches the control.
      • AutoWidth - The default width is 250. When this property is set, the text will not wrap.
    • Fades in when the mouse is over the Help image.
    • Opacity remains at 1 while mouse over.
    • When mouse leaves the window, the window will fade and close when opacity reaches 0.
    • The height auto sizes to the content.
    • The Help Balloon will present itself on the right side by default and will shift to the left if extends past the screen.
    • Can "attach" a Balloon to any control.
    • Optionally show "Close" button.
    • Code Example:
      • Add this attribute to your Window
        • {{ xmlns:Notification="clr-namespace:Mantin.Controls.Wpf.Notification;assembly=Mantin.Controls.Wpf.Notification"}}
      • XAML Tag
        • {{ <Notification:HelpBalloon Caption="{Binding HelpText}" BalloonType="{Binding BalloonType}" MaxHeight="{Binding MaxHeight}"/> }}
  • Toast Popup

    • Loads in the bottom right of the screen.
    • Uses animation to fade in and fade out.
    • Opacity remains at 1 while mouse over
    • The height auto sizes to the content.
    • Toast will stack on top of each other and will stack left if they reach the top of the screen.
    • As the toast close, they will fall to the bottom of the screen.
    • Has a close button (raises event).
    • Will fade out after a couple of seconds.
    • If the user mouses over the window, the opacity will return to 1.
    • Windows closes when opacity reaches 0.
    • Constructors accept:
      • Title - Title of your pop up.
      • Text - Content of the message to the user. Also includes the ability to pass in a List<Inline> for rich text.
      • Hyperlink - (Optional) Text to display as a hyperlink (raises event when clicked.
      • Ability to override the image.
      • Notification Types:
        • Information
        • Warning
        • Error
    • Other Properties:
      • FontColor
      • BorderBrush
      • Background
      • MaxToast
    • Code Example:
      • {{ // This example shows how to register the available events var toast = new ToastPopUp( "My Title", "This is the main content.", "Click this Hyperlink", NotificationType.Information);

        // This is what will be passed back through the HyperlinkClicked event. toast.HyperlinkObjectForRaisedEvent = new object(); toast.HyperlinkClicked += this.ToastHyperlinkClicked; toast.ClosedByUser += this.ToastClosedByUser; toast.Show();

        // Passing rich text as inlines and overrides the image. var inlines = new List<Inline>(); inlines.Add(new Run() { Text = "This is the first line of my main content." }); inlines.Add(new Run() { Text = Environment.NewLine }); inlines.Add(new Run("This text will be italic.") { FontStyle = FontStyles.Italic });

        new ToastPopUp(title, inlines, HyperLinkText, Properties.Resources.data_disk.ToBitmapImage());

        // If you don't need any events fired, you can do this. new ToastPopUp("My Title", "This is the main content.", NotificationType.Information) { Background = new LinearGradientBrush(Color.FromArgb(255, 4, 253, 82), Color.FromArgb(255, 10, 13, 248), 90), BorderBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)), FontColor = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)) }.Show(); }}

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.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 (1)

Showing the top 1 popular GitHub repositories that depend on Mantin.Controls.Wpf.Notification:

Repository Stars
nefarius/ScpToolkit
Windows Driver and XInput Wrapper for Sony DualShock 3/4 Controllers
Version Downloads Last updated
8.0.0 100 4/5/2024
6.0.0 538 9/13/2022
4.0.0 975 2/25/2020
3.2.0 4,519 2/24/2017
3.1.0 1,778 6/20/2016
3.0.0 1,511 4/28/2016
2.8.1 6,644 4/23/2015
2.8.0 1,258 4/23/2015
2.7.1 1,282 4/13/2015
2.7.0 1,461 2/6/2015
2.6.1 1,376 1/8/2015
2.6.0 1,406 12/2/2014
2.5.2 1,994 11/14/2014
2.5.1 1,489 11/10/2014
2.4.0 1,666 11/3/2014
2.3.3 1,675 10/13/2014
2.3.2 1,166 9/18/2014
2.3.1 1,103 9/16/2014
2.2.2 1,139 9/15/2014
2.1.1 1,098 9/11/2014
2.1.0 1,311 9/10/2014
2.0.0 1,322 9/8/2014