From 93a320522f1b93ccbb96a2ab1eeb2a3d9c21d287 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Thu, 25 Apr 2019 21:34:26 +0100 Subject: [PATCH] AdornerLayer inherits Canvas so controls can be placed anywhere inside the layer. --- src/Avalonia.Controls/Primitives/AdornerLayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Controls/Primitives/AdornerLayer.cs b/src/Avalonia.Controls/Primitives/AdornerLayer.cs index ed590679cd..8a724926e8 100644 --- a/src/Avalonia.Controls/Primitives/AdornerLayer.cs +++ b/src/Avalonia.Controls/Primitives/AdornerLayer.cs @@ -4,14 +4,14 @@ using System; using System.Collections.Specialized; using System.Linq; -using Avalonia.VisualTree; using Avalonia.Media; using Avalonia.Rendering; +using Avalonia.VisualTree; namespace Avalonia.Controls.Primitives { // TODO: Need to track position of adorned elements and move the adorner if they move. - public class AdornerLayer : Panel, ICustomSimpleHitTest + public class AdornerLayer : Canvas, ICustomSimpleHitTest { public static readonly AttachedProperty AdornedElementProperty = AvaloniaProperty.RegisterAttached("AdornedElement");