Skip to content

Commit

Permalink
fix immediaterenderer custom hittesting for WindowNotificationManager f…
Browse files Browse the repository at this point in the history
  • Loading branch information
donandren committed Dec 12, 2019
1 parent 36dd50e commit fc44379
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
using System.Reactive.Linq;
using System.Threading.Tasks;
using Avalonia.Controls.Primitives;
using Avalonia.Rendering;
using Avalonia.VisualTree;

namespace Avalonia.Controls.Notifications
{
/// <summary>
/// An <see cref="INotificationManager"/> that displays notifications in a <see cref="Window"/>.
/// </summary>
public class WindowNotificationManager : TemplatedControl, IManagedNotificationManager
public class WindowNotificationManager : TemplatedControl, IManagedNotificationManager, ICustomSimpleHitTest
{
private IList _items;

Expand Down Expand Up @@ -153,5 +154,7 @@ private void Install(Window host)

adornerLayer?.Children.Add(this);
}

public bool HitTest(Point point) => VisualChildren.HitTestCustom(point);
}
}

0 comments on commit fc44379

Please sign in to comment.