diff --git a/nukebuild/Numerge b/nukebuild/Numerge index aef10ae67d..4464343aef 160000 --- a/nukebuild/Numerge +++ b/nukebuild/Numerge @@ -1 +1 @@ -Subproject commit aef10ae67dc55c95f49b52a505a0be33bfa297a5 +Subproject commit 4464343aef5c8ab7a42fcb20a483a6058199f8b8 diff --git a/samples/ControlCatalog/MainView.xaml b/samples/ControlCatalog/MainView.xaml index b79db9f053..9f1899acc5 100644 --- a/samples/ControlCatalog/MainView.xaml +++ b/samples/ControlCatalog/MainView.xaml @@ -29,6 +29,7 @@ + diff --git a/samples/ControlCatalog/MainWindow.xaml b/samples/ControlCatalog/MainWindow.xaml index 35740d444f..6a9e865e26 100644 --- a/samples/ControlCatalog/MainWindow.xaml +++ b/samples/ControlCatalog/MainWindow.xaml @@ -4,6 +4,15 @@ Icon="/Assets/test_icon.ico" xmlns:local="clr-namespace:ControlCatalog" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:vm="clr-namespace:ControlCatalog.ViewModels" + xmlns:v="clr-namespace:ControlCatalog.Views" x:Class="ControlCatalog.MainWindow"> - + + + + + + + + diff --git a/samples/ControlCatalog/MainWindow.xaml.cs b/samples/ControlCatalog/MainWindow.xaml.cs index e620a77e52..91d9f034a5 100644 --- a/samples/ControlCatalog/MainWindow.xaml.cs +++ b/samples/ControlCatalog/MainWindow.xaml.cs @@ -1,18 +1,33 @@ using Avalonia; using Avalonia.Controls; +using Avalonia.Controls.Notifications; +using Avalonia.Controls.Primitives; using Avalonia.Markup.Xaml; +using Avalonia.Threading; +using ControlCatalog.ViewModels; using System; +using System.Threading.Tasks; namespace ControlCatalog { public class MainWindow : Window { + private WindowNotificationManager _notificationArea; + public MainWindow() { this.InitializeComponent(); this.AttachDevTools(); //Renderer.DrawFps = true; //Renderer.DrawDirtyRects = Renderer.DrawFps = true; + + _notificationArea = new WindowNotificationManager(this) + { + Position = NotificationPosition.TopRight, + MaxItems = 3 + }; + + DataContext = new MainWindowViewModel(_notificationArea); } private void InitializeComponent() diff --git a/samples/ControlCatalog/Pages/NotificationsPage.xaml b/samples/ControlCatalog/Pages/NotificationsPage.xaml new file mode 100644 index 0000000000..94e2314dc7 --- /dev/null +++ b/samples/ControlCatalog/Pages/NotificationsPage.xaml @@ -0,0 +1,10 @@ + + + Notifications +