Browse Source

Fix logic in setting templated parent in Popup.

The brackets were in the wrong place!
pull/691/head
Steven Kirk 10 years ago
parent
commit
b53fd363e5
  1. 2
      src/Avalonia.Controls/Primitives/PopupRoot.cs

2
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())
{

Loading…
Cancel
Save