diff --git a/src/Perspex.Layout/ILayoutable.cs b/src/Perspex.Layout/ILayoutable.cs index 1a686e758f..3b276ef5ac 100644 --- a/src/Perspex.Layout/ILayoutable.cs +++ b/src/Perspex.Layout/ILayoutable.cs @@ -87,11 +87,7 @@ namespace Perspex.Layout /// Carries out a measure of the control. /// /// The available size for the control. - /// - /// If true, the control will be measured even if has not - /// changed from the last measure. - /// - void Measure(Size availableSize, bool force = false); + void Measure(Size availableSize); /// /// Arranges the control and its children. diff --git a/src/Perspex.Layout/Layoutable.cs b/src/Perspex.Layout/Layoutable.cs index a1ae8f5d56..ce2bd187b9 100644 --- a/src/Perspex.Layout/Layoutable.cs +++ b/src/Perspex.Layout/Layoutable.cs @@ -306,18 +306,14 @@ namespace Perspex.Layout /// Carries out a measure of the control. /// /// The available size for the control. - /// - /// If true, the control will be measured even if has not - /// changed from the last measure. - /// - public void Measure(Size availableSize, bool force = false) + public void Measure(Size availableSize) { if (double.IsNaN(availableSize.Width) || double.IsNaN(availableSize.Height)) { throw new InvalidOperationException("Cannot call Measure using a size with NaN values."); } - if (force || !IsMeasureValid || _previousMeasure != availableSize) + if (!IsMeasureValid || _previousMeasure != availableSize) { var previousDesiredSize = DesiredSize; var desiredSize = default(Size);