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
ErrorToaster.Toast("My Error Message!");
SuccessToaster.Toast("Success message", animation: ToasterAnimation.FadeIn);
WarningToaster.Toast("Warning message", ToasterPosition.PrimaryScreenTopRight);
- Optional parameters (more to come)
- 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 * SlideInFromRight (default) * 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