feat: add VisualLayerManager ctor to Notification & Toast manager.

This commit is contained in:
Zhang Dian
2024-12-23 17:22:02 +08:00
parent 471840b574
commit b16a51ee4f
6 changed files with 82 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
using Avalonia.Controls;
using Avalonia.Controls.Notifications;
using Avalonia.Controls.Primitives;
using Avalonia.Threading;
namespace Ursa.Controls;
@@ -9,6 +10,13 @@ namespace Ursa.Controls;
/// </summary>
public class WindowToastManager : WindowMessageManager, IToastManager
{
/// <summary>
/// Initializes a new instance of the <see cref="WindowToastManager"/> class.
/// </summary>
public WindowToastManager()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="WindowToastManager"/> class.
/// </summary>
@@ -21,10 +29,7 @@ public class WindowToastManager : WindowMessageManager, IToastManager
}
}
/// <summary>
/// Initializes a new instance of the <see cref="WindowToastManager"/> class.
/// </summary>
public WindowToastManager()
public WindowToastManager(VisualLayerManager? visualLayerManager) : base(visualLayerManager)
{
}