From b53fd363e598cc8215143d6444532bc001ab22f7 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 19 Aug 2016 00:06:19 +0200 Subject: [PATCH] Fix logic in setting templated parent in Popup. The brackets were in the wrong place! --- src/Avalonia.Controls/Primitives/PopupRoot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Primitives/PopupRoot.cs b/src/Avalonia.Controls/Primitives/PopupRoot.cs index 16c66c7cfc..f67bbef5e1 100644 --- a/src/Avalonia.Controls/Primitives/PopupRoot.cs +++ b/src/Avalonia.Controls/Primitives/PopupRoot.cs @@ -130,7 +130,7 @@ namespace Avalonia.Controls.Primitives control.ApplyTemplate(); - if (!(control is IPresenter && control.TemplatedParent == templatedParent)) + if (!(control is IPresenter) && control.TemplatedParent == templatedParent) { foreach (IControl child in control.GetVisualChildren()) {