Browse Source

Use Parent property.

Instead of `LogicalParent` - they're the same but `Parent` is used below
- this clarifies that it's the same property to those unfamiliar with
the codebase.
Steven Kirk 9 years ago
parent
commit
9b9b048fbb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/Presenters/ContentPresenter.cs

+ 1 - 1
src/Avalonia.Controls/Presenters/ContentPresenter.cs

@@ -277,7 +277,7 @@ namespace Avalonia.Controls.Presenters
 
                 Child = newChild;
 
-                if (oldChild?.LogicalParent == this)
+                if (oldChild?.Parent == this)
                 {
                     LogicalChildren.Remove(oldChild);
                 }