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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Notification.Avalonia
Port of repo
To start you should install NuGet package
Install-Package Notification.Avalonia
or download https://www.nuget.org/packages/Notification.Avalonia/ repo.
For use:
- Add style in App.xaml
<Application.Styles>
...
<StyleInclude Source="avares://Notification.Avalonia/Themes/Generic.xaml" />
</Application.Styles>
- Add notification panel in your window
<Border Grid.Column="1">
<controls:NotificationMessageContainer Manager="{Binding Manager}" />
</Border>
- Bind manager from vm
public INotificationMessageManager Manager { get; } = new NotificationMessageManager();
- 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 | Versions 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.
-
.NETStandard 2.1
- Avalonia (>= 11.0.9)
- Avalonia.Svg.Skia (>= 11.0.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.