diff --git a/src/Uno.UI/UI/Xaml/Controls/AppBar/AppBar.cs b/src/Uno.UI/UI/Xaml/Controls/AppBar/AppBar.cs index 0125eac652ed..2c0f461a2c9a 100644 --- a/src/Uno.UI/UI/Xaml/Controls/AppBar/AppBar.cs +++ b/src/Uno.UI/UI/Xaml/Controls/AppBar/AppBar.cs @@ -156,16 +156,7 @@ protected override Size MeasureOverride(Size availableSize) // (It's the responsibility of each child to constraint itself) // Note: This override is used only for the XAML command bar, not the native! var infinity = new Size(double.PositiveInfinity, double.PositiveInfinity); - var result = base.MeasureOverride(infinity); - - var height = ClosedDisplayMode switch - { - AppBarClosedDisplayMode.Compact => _compactHeight, - AppBarClosedDisplayMode.Minimal => _minimalHeight, - _ => 0 - }; - - return new Size(result.Width, height); + return base.MeasureOverride(infinity); } bool ICustomClippingElement.AllowClippingToLayoutSlot => false;