From 5b77f5412fc5c69f0d955e47329a4336f779dbeb Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 28 Jan 2015 12:46:54 +0100 Subject: [PATCH] PerspexList now notifies of cleared items. --- Perspex.SceneGraph/Visual.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Perspex.SceneGraph/Visual.cs b/Perspex.SceneGraph/Visual.cs index 1ceeb78e59..9ce14cd158 100644 --- a/Perspex.SceneGraph/Visual.cs +++ b/Perspex.SceneGraph/Visual.cs @@ -153,12 +153,7 @@ namespace Perspex protected void ClearVisualChildren() { - // TODO: Just call visualChildren.Clear() when we have a PerspexList that notifies of - // the removed items. - while (this.visualChildren.Count > 0) - { - this.visualChildren.RemoveAt(this.visualChildren.Count - 1); - } + this.visualChildren.Clear(); } protected void RemoveVisualChild(Visual visual)