浏览代码

Fix logic in setting templated parent in Popup.

The brackets were in the wrong place!
Steven Kirk 9 年之前
父节点
当前提交
b53fd363e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
             control.ApplyTemplate();
 
 
-            if (!(control is IPresenter && control.TemplatedParent == templatedParent))
+            if (!(control is IPresenter) && control.TemplatedParent == templatedParent)
             {
             {
                 foreach (IControl child in control.GetVisualChildren())
                 foreach (IControl child in control.GetVisualChildren())
                 {
                 {