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.
pull/573/head
Steven Kirk 10 years ago
parent
commit
9b9b048fbb
  1. 2
      src/Avalonia.Controls/Presenters/ContentPresenter.cs

2
src/Avalonia.Controls/Presenters/ContentPresenter.cs

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

Loading…
Cancel
Save