WPF.Notifier 1.2.0

WPF.Notifier shows one or more toastnotification-windows.

Besides it's possible to show your own window with your viewmodel as a toastnotification.

(I)NotifierManager should be a Singleton, if you use it from different classes, because all notificationwindos are saved internally and removed after closing. You can use a DI Framework like Ninject and register INotifierManager as Singleton.

Then call ShowNotification/ShowCustomNotification .

If you want to show your own window, you have to handle the animations and closing by yourself.

Show your own Notification:

call ShowCustomNotification(yourViewModel)

in App.xaml:

<Application.Resources>
       <DataTemplate DataType="{x:Type local:yourViewModel}">
           <local:TestView />
       </DataTemplate>
   </Application.Resources>

Install-Package WPF.Notifier -Version 1.2.0
dotnet add package WPF.Notifier --version 1.2.0
<PackageReference Include="WPF.Notifier" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF.Notifier --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WPF.Notifier, 1.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install WPF.Notifier as a Cake Addin
#addin nuget:?package=WPF.Notifier&version=1.2.0

// Install WPF.Notifier as a Cake Tool
#tool nuget:?package=WPF.Notifier&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

-added NotificationBaseViewModel for custom notification window with datatemplate. Invoke OnCloseWindow to close the notificationwindow

-added parameter applyStandardSettings for custom window

applyStandardSettings applys WindowStyle = None
AllowsTransparency = true
Background = Transparent

Now you have the full control with your usercontrol.
You could do the same with the optional parameter settings, but this settings are mostly standard for the notification window and it would be irritating to use the settings parameter for  this

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 1,389 12/30/2015
1.1.0 800 12/24/2015
1.0.3 594 12/20/2015
1.0.2 760 12/20/2015
1.0.1.1 765 12/20/2015
1.0.1 750 12/20/2015