WPF.Notifier 1.2.0

WPF Notifier

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.

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.

Version History

Version Downloads Last updated
1.2.0 786 12/30/2015
1.1.0 359 12/24/2015
1.0.3 246 12/20/2015
1.0.2 375 12/20/2015
1.0.1.1 383 12/20/2015
1.0.1 373 12/20/2015