A lightweight and easy-to-use message/notification/toast library for Avalonia UI.
Message.Avalonia.Demo.Desktop_cSzShJDtUN.mp4
Important
The documentation is minimal, but the demo project showcases all available features. This library is designed to be very developer-friendly.
Install-Package Message.Avalonia<Application ...
xmlns:msg="https://github.com/xiyaowong/Message.Avalonia"
...>
<Application.Styles>
<msg:Theme />
</Application.Styles>
</Application><Panel>
<!-- Your main UI content -->
<msg:MessageHost />
<msg:MessageHost HostId="Another" Position="BottomCenter" />
</Panel>HostIdis optional. If omitted, the default host will be used.- You can skip defining
MessageHostentirely — a default host will be created automatically if needed.
MessageManager.Default.ShowInfomationMessage("Hello");Colors:
<!-- Text and icon colors -->
<Color x:Key="MessageInfoColor">
<Color x:Key="MessageSuccessColor">
<Color x:Key="MessageWarningColor">
<Color x:Key="MessageErrorColor">
<!-- Border colors -->
<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">MIT