From 46319743af25e2b1a177854b85b87ca596ac144a Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 29 Jul 2015 19:47:47 +0200 Subject: [PATCH] Remove unnecessary measure/arrange. --- .../Primitives/TemplatedControl.cs | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/Perspex.Controls/Primitives/TemplatedControl.cs b/Perspex.Controls/Primitives/TemplatedControl.cs index fefcc808fb..0601b08f5d 100644 --- a/Perspex.Controls/Primitives/TemplatedControl.cs +++ b/Perspex.Controls/Primitives/TemplatedControl.cs @@ -154,34 +154,6 @@ namespace Perspex.Controls.Primitives } } - protected override Size ArrangeOverride(Size finalSize) - { - Control child = ((IVisual)this).VisualChildren.SingleOrDefault() as Control; - - if (child != null) - { - child.Arrange(new Rect(finalSize)); - return child.Bounds.Size; - } - else - { - return new Size(); - } - } - - protected override Size MeasureOverride(Size availableSize) - { - Control child = ((IVisual)this).VisualChildren.SingleOrDefault() as Control; - - if (child != null) - { - child.Measure(availableSize); - return child.DesiredSize; - } - - return new Size(); - } - protected virtual void OnTemplateApplied() { }