diff --git a/src/Core/src/Platform/Windows/PagePanel.cs b/src/Core/src/Platform/Windows/PagePanel.cs index e19b65d1b8bb..e42f6ad6877f 100644 --- a/src/Core/src/Platform/Windows/PagePanel.cs +++ b/src/Core/src/Platform/Windows/PagePanel.cs @@ -17,22 +17,9 @@ protected override Windows.Foundation.Size MeasureOverride(Windows.Foundation.Si return base.MeasureOverride(availableSize); } - var width = availableSize.Width; - var height = availableSize.Height; + CrossPlatformMeasure(availableSize.Width, availableSize.Height); - if (double.IsInfinity(width)) - { - width = XamlRoot.Size.Width; - } - - if (double.IsInfinity(height)) - { - height = XamlRoot.Size.Height; - } - - CrossPlatformMeasure(width, height); - - return new Windows.Foundation.Size(width, height); + return availableSize; } protected override Windows.Foundation.Size ArrangeOverride(Windows.Foundation.Size finalSize)