Mileeena.Notification.Avalonia 2.1.2

dotnet add package Mileeena.Notification.Avalonia --version 2.1.2
NuGet\Install-Package Mileeena.Notification.Avalonia -Version 2.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mileeena.Notification.Avalonia" Version="2.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mileeena.Notification.Avalonia --version 2.1.2
#r "nuget: Mileeena.Notification.Avalonia, 2.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mileeena.Notification.Avalonia as a Cake Addin
#addin nuget:?package=Mileeena.Notification.Avalonia&version=2.1.2

// Install Mileeena.Notification.Avalonia as a Cake Tool
#tool nuget:?package=Mileeena.Notification.Avalonia&version=2.1.2

Notification.Avalonia

Port of this repo


To start you should install NuGet package

Install-Package Notification.Avalonia

nuget or download https://www.nuget.org/packages/Notification.Avalonia/ repo.


alternate text is missing from this package README image


For use:

  1. Add style in App.xaml
<Application.Styles>
        ...
    <StyleInclude Source="avares://Notification.Avalonia/Themes/Generic.xaml" />
</Application.Styles>

  1. Add notification panel in your window
 <Border Grid.Column="1">
       <controls:NotificationMessageContainer Manager="{Binding Manager}" />
 </Border>
  1. Bind manager from vm
 public INotificationMessageManager Manager { get; } = new NotificationMessageManager();
  1. Run notification
            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();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.2 513 3/4/2024
2.1.1 99 3/3/2024
2.1.0 93 3/3/2024