This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] LinearGradientBrush doesn't fill the pages upon orientation change on iOS #11800
Labels
a/brushes
e/2 🕑
2
in-progress
This issue has an associated pull request that may resolve it!
p/iOS 🍎
t/bug 🐛
Projects
Milestone
Description
When I set the background of a ContentPage or NavigationPage to a LinearGradientBrush, then change the orientation of the device running the app, the background rotates as it should, but it does not redraw properly to fill the screen. When a ContentPage's background is set to a LinearGradientBrush then rotated, a white bar is visible on the edge depending on the starting orientation. Whereas when a NavigationPage's BarBackground is set to a LinearGradientBrush, the gradient appears to stack horizontally.
Steps to Reproduce
Expected Behavior
Gradient redraws to fill the screen properly.
Actual Behavior
Gradient rotates but doesn't fill screen, either leaving a white bar or another gradient stacks horizontally on it. NavigationPage gradient doesn't seem to have issues on a 13.6 device, but still white bar for ContentPage.
Basic Information
Version with issue:
Last known good version: None, issue ever since the experimental version released with Xamarin Forms 4.8.
IDE: Visual Studio 2019, version 16.7
Platform Target Frameworks:
Nuget Packages:
Affected Devices:
Phone and Tablet.
Screenshots
Workaround
You can set the Background property of a StackLayout, AbsoluteLayout, etc. that fills the screen, will redraw properly. Can't find workaround for NavigationPage.BarBackground, apart from not setting Background entirely and using a custom renderer instead.
The text was updated successfully, but these errors were encountered: