A .net toaster library for very simple and slightly customizable toaster notifications. Heavily inspired by angular-toastr
-
Install using nuget or by including the above netoaster project into your WPF app
-
Call it
Toaster.ShowError(this, message: "My Error Message!");
Toaster.ShowSuccess(this, message: "Success message", animation: ToasterAnimation.FadeIn);
Toaster.ShowWarning(this, message: "Warning message", position: ToasterPosition.PrimaryScreenTopRight);
- Optional parameters (more to come)
- title - the text to display in header of the toaster
- message - the text to display in the toaster
- position - the position to show the toaster, like (default is PrimaryScreenBottomRight) * shout out to jublin * PrimaryScreenBottomRight * PrimaryScreenTopRight * PrimaryScreenBottomLeft * PrimaryScreenTopLeft * ApplicationBottomRight * ApplicationTopRight * ApplicationBottomLeft * ApplicationTopLeft
- animation - the style of the animation * FadeIn (default) * SlideInFromRight * SlideInFromLeft * SlideInFromTop * SlideInFromBottom * GrowFromRight * GrowFromLeft * GrowFromTop * GrowFromBottom
- margin - the desired distance away from the corner
#To do:
- add optional colors
- for feature requests open a new issue
#Contributers
#Concept skeleton of code came from this stackoverflow post by Ray Burns. I customized it to my own needs.
#Contribute feel free to submit pull-requests