dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.01k stars 1.72k forks source link

Orientation Layout Background not working on iOS with LinearGradientBrush #23763

Closed hannah-dev92 closed 2 months ago

hannah-dev92 commented 2 months ago

Description

image

Background color not covering the screen when changing device orientation

Steps to Reproduce

Create a LinearGradientBrush Style <LinearGradientBrush x:Key="Gradient_L0" EndPoint="0,1"> <GradientStop Color="{DynamicResource Primary}" Offset="0" /> <GradientStop Color="{DynamicResource Tertiary}" Offset="1" /> </LinearGradientBrush> Set the background property to the LinearGradient Brush <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MauiApp3.MainPage" Background="{DynamicResource Gradient_L0}"> change Device Orientation on iPad or iPhone -> only part of the screen is covered with expected background color

Link to public reproduction project repository

https://github.com/hannah-dev92/Maui-Background-Example/tree/master

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.0

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

PureWeen commented 2 months ago

Duplicate of #23501