prework for notifications
ADD
WalletWasabi.Fluent/Behaviors/RegisterNotificationHostBehavior.cs
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Controls.Notifications;
+using WalletWasabi.Fluent.Helpers;
+
+namespace WalletWasabi.Fluent.Behaviors
+{
+ public class RegisterNotificationHostBehavior : AttachedToVisualTreeBehavior<Window>
+ {
+ protected override void OnAttachedToVisualTree()
+ {
+ var notificationManager = new WindowNotificationManager(AssociatedObject)
+ {
+ Position = NotificationPosition.BottomRight,
+ MaxItems = 4,
+ Margin = new Thickness(0, 0, 15, 40)
+ };
+
+ NotificationHelpers.SetNotificationManager(notificationManager);
+ }
+ }
+}

ADD
WalletWasabi.Fluent/Helpers/NotificationHelpers.cs
+using System;
+using Avalonia.Controls.Notifications;
+
+namespace WalletWasabi.Fluent.Helpers
+{
+ public static class NotificationHelpers
+ {
+ private static WindowNotificationManager? NotificationManager;
+
+ public static void SetNotificationManager(WindowNotificationManager windowNotificationManager)
+ {
+ if (NotificationManager is { })
+ {
+ throw new InvalidOperationException("Already set!");
+ }
+
+ NotificationManager = windowNotificationManager;
+ }
+
+ public static void Show(string title, string message)
+ {
+ if (NotificationManager is { } nm)
+ {
+ nm.Show(new Notification(title, message));
+ }
+ }
+ }
+}

prework for notifications