add notifications to mainwindow.
MODIFY
WalletWasabi.Gui/MainWindow.xaml.cs
WalletWasabi.Gui/MainWindow.xaml.cs
using Avalonia;
using Avalonia.Controls;
+using Avalonia.Controls.Notifications;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using Avalonia.Native;
+using Avalonia.Threading;
using AvalonStudio.Extensibility;
using AvalonStudio.Extensibility.Theme;
using AvalonStudio.Shell;
using AvalonStudio.Shell.Controls;
using NBitcoin;
using ReactiveUI;
+using Splat;
using System;
using System.ComponentModel;
using System.Composition;
@@ -20,6 +23,7 @@ using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Gui.Dialogs;
+using WalletWasabi.Gui.Helpers;
using WalletWasabi.Gui.Tabs.WalletManager;
using WalletWasabi.Gui.ViewModels;
using WalletWasabi.Logging;
@@ -36,6 +40,22 @@ namespace WalletWasabi.Gui
#if DEBUG
this.AttachDevTools();
#endif
+
+ var notificationManager = new WindowNotificationManager(this)
+ {
+ Position = NotificationPosition.BottomRight,
+ MaxItems = 4,
+ Margin = new Thickness(0, 0, 15, 40)
+ };
+
+ Locator.CurrentMutable.RegisterConstant<INotificationManager>(notificationManager);
+
+ Dispatcher.UIThread.InvokeAsync(async () =>
+ {
+ await Task.Delay(3000);
+
+ NotificationHelpers.Information("Welcome!", "Welcome to Wasabi");
+ });
}
public Global Global => MainWindowViewModel.Instance.Global;

MODIFY
WalletWasabi.Gui/Styles/Styles.xaml
WalletWasabi.Gui/Styles/Styles.xaml
<SolidColorBrush x:Key="ErrorBrush">#F25022</SolidColorBrush>
<SolidColorBrush x:Key="WarningMessageForeground">#FFDD00</SolidColorBrush>
<SolidColorBrush x:Key="GreenBrush">#00DD10</SolidColorBrush>
+
+ <SolidColorBrush x:Key="NotificationCardBackgroundBrush" Color="#444444" Opacity="0.75"/>
+ <SolidColorBrush x:Key="NotificationCardInformationBackgroundBrush" Color="#007ACC" Opacity="0.75"/>
+ <SolidColorBrush x:Key="NotificationCardSuccessBackgroundBrush" Color="#1F9E45" Opacity="0.75"/>
+ <SolidColorBrush x:Key="NotificationCardWarningBackgroundBrush" Color="#FDB328" Opacity="0.75"/>
+ <SolidColorBrush x:Key="NotificationCardErrorBackgroundBrush" Color="#BD202C" Opacity="0.75"/>
+
<sys:Double x:Key="FontSizeSmall">12</sys:Double>
<sys:Double x:Key="FontSizeNormal">14</sys:Double>
<sys:Double x:Key="FontSizeLarge">16</sys:Double>

add notifications to mainwindow.