AvionBlock.Message.Avalonia 1.2.0

dotnet add package AvionBlock.Message.Avalonia --version 1.2.0
                    
NuGet\Install-Package AvionBlock.Message.Avalonia -Version 1.2.0
                    
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="AvionBlock.Message.Avalonia" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AvionBlock.Message.Avalonia" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AvionBlock.Message.Avalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AvionBlock.Message.Avalonia --version 1.2.0
                    
#r "nuget: AvionBlock.Message.Avalonia, 1.2.0"
                    
#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.
#:package AvionBlock.Message.Avalonia@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AvionBlock.Message.Avalonia&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AvionBlock.Message.Avalonia&version=1.2.0
                    
Install as a Cake Tool

Message.Avalonia

NuGet
NuGet

A lightweight and easy-to-use message/notification/toast library for Avalonia UI.

https://github.com/user-attachments/assets/64f8d668-5c5d-4a76-873c-854a06691aec

Attribution

This repository is a fork of the original project by xiyaowong.

Repository Structure

  • Message.Avalonia — library source code
  • Message.Avalonia.Demo — shared demo application
  • Message.Avalonia.Demo.Desktop — desktop demo host
  • Message.Avalonia.Demo.Browser — browser demo host
  • TestAutoCreatedDefaultHost — host behavior sample app
  • Message.Avalonia.Tests — automated tests

Getting Started

The documentation is minimal, but the demo project showcases all available features. This library is designed to be very developer-friendly.

1. Install the NuGet package

Install-Package AvionBlock.Message.Avalonia

2. Add the required styles to your App.xaml

<Application ...
             xmlns:msg="https://github.com/xiyaowong/Message.Avalonia"
             ...>

    <Application.Styles>
        <msg:Theme />
    </Application.Styles>
</Application>

3. Add the MessageHost to your UI layout

<Panel>
    
    <msg:MessageHost />
    <msg:MessageHost HostId="Another" Position="BottomCenter" />
</Panel>
  • HostId is optional. If omitted, the default host will be used.
  • You can skip defining MessageHost entirely — a default host will be created automatically if needed.

4. Show messages using MessageManager

MessageManager.Default.ShowInfomationMessage("Hello");

Usage

Override the default styles

Colors:


<Color x:Key="MessageInfoColor">
<Color x:Key="MessageSuccessColor">
<Color x:Key="MessageWarningColor">
<Color x:Key="MessageErrorColor">


<Color x:Key="MessageInfoBorderColor">
<Color x:Key="MessageSuccessBorderColor">
<Color x:Key="MessageWarningBorderColor">
<Color x:Key="MessageErrorBorderColor">

Icons:

<StreamGeometry x:Key="message_info_icon">
<StreamGeometry x:Key="message_success_icon">
<StreamGeometry x:Key="message_warning_icon">
<StreamGeometry x:Key="message_error_icon">
<StreamGeometry x:Key="message_close_icon">

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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 (1)

Showing the top 1 popular GitHub repositories that depend on AvionBlock.Message.Avalonia:

Repository Stars
AvionBlock/VoiceCraft
VoiceCraft software to implement proximity VC for Minecraft Bedrock Edition (THIS IS A MIRROR OF THE GITLAB REPO!)
Version Downloads Last Updated
1.2.0 1,216 4/17/2026