Browse Source

Fix logic in setting templated parent in Popup.

The brackets were in the wrong place!
Steven Kirk 9 years ago
parent
commit
b53fd363e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/Primitives/PopupRoot.cs

+ 1 - 1
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())
                 {