From 9b9b048fbb7c868f970a1dfd272656a46ed0a3cb Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 27 Jun 2016 20:25:02 +0200 Subject: [PATCH] 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. --- src/Avalonia.Controls/Presenters/ContentPresenter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Presenters/ContentPresenter.cs b/src/Avalonia.Controls/Presenters/ContentPresenter.cs index c5a8337339..4c5a488003 100644 --- a/src/Avalonia.Controls/Presenters/ContentPresenter.cs +++ b/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); }