# Notification.Avalonia **Repository Path**: blue2015/Notification.Avalonia ## Basic Information - **Project Name**: Notification.Avalonia - **Description**: No description available - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-04 - **Last Updated**: 2022-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Notification.Avalonia Port of ![this](https://github.com/Enterwell/Wpf.Notifications) repo --- To start you should install NuGet package > Install-Package Notification.Avalonia [![nuget](https://img.shields.io/badge/nuget-notification-blue)](https://www.nuget.org/packages/Notification.Avalonia/) or download https://www.nuget.org/packages/Notification.Avalonia/ repo. --- ![](https://github.com/AvaloniaCommunity/Avalonia.Notification/blob/master/Images/Avalonia.Notification.gif) --- For use: 1. Add style in App.xaml ```xml ... ``` 2. Add notification panel in your window ```xml ``` 3. Bind manager from vm ```cs public INotificationMessageManager Manager { get; } = new NotificationMessageManager(); ``` 4. Run notification ```cs this.Manager .CreateMessage() .Accent("#1751C3") .Animates(true) .Background("#333") .HasBadge("Info") .HasMessage( "Update will be installed on next application restart. This message will be dismissed after 5 seconds.") .Dismiss().WithButton("Update now", button => { }) .Dismiss().WithButton("Release notes", button => { }) .Dismiss().WithDelay(TimeSpan.FromSeconds(5)) .Queue(); ```