Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [Regression] iOS Frame.Background not working #14426

Closed
albilaga opened this issue Jul 16, 2021 · 10 comments · Fixed by #14565
Closed

[Bug] [Regression] iOS Frame.Background not working #14426

albilaga opened this issue Jul 16, 2021 · 10 comments · Fixed by #14565

Comments

@albilaga
Copy link

albilaga commented Jul 16, 2021

Description

When setting Frame.Background, the background will set to white. But with BackgroundColor it is working as expected. This is only happened on iOS

Steps to Reproduce

  1. Create sample page like this
ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:App1"
             BackgroundColor="Red"
             x:Class="App1.MainPage">

    <StackLayout VerticalOptions="Center" HorizontalOptions="Center">
        <Frame HasShadow="False">
            <Frame.Background>
                <SolidColorBrush Color="Transparent" />
            </Frame.Background>
            <Label Text="Hello" />
        </Frame>
    </StackLayout>

</ContentPage>
  1. Run the app.

Expected Behavior

Frame Background should be Transparent.

Actual Behavior

Frame.Background is White

Basic Information

  • Version with issue:
  • Last known good version: 5.0.0.2012
  • Platform Target Frameworks:
    • iOS: 14.5
  • Issue with version: 5.0.0.2083
  • Affected Devices: iOS only

Screenshots

image

Workaround

Use BackgroundColor Transparent instead of Background with SolidBrushColor Transparent

@albilaga albilaga added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 16, 2021
@albilaga albilaga changed the title [Bug] iOS VisualElement.Background not working [Bug] [Regression] iOS VisualElement.Background not working Jul 16, 2021
@albilaga albilaga changed the title [Bug] [Regression] iOS VisualElement.Background not working [Bug] [Regression] iOS Frame.Background not working Jul 16, 2021
@thisisthekap
Copy link
Contributor

thisisthekap commented Jul 16, 2021

@albilaga Thank you for providing the workaround!

@albilaga
Copy link
Author

Possibly related with this PR #13401 ?

@jsuarezruiz jsuarezruiz self-assigned this Jul 16, 2021
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Jul 16, 2021
@jsuarezruiz jsuarezruiz added a/brushes and removed s/unverified New report that has yet to be verified labels Jul 16, 2021
@jsuarezruiz jsuarezruiz moved this from New to Ready For Work in Triage Jul 16, 2021
@DevEddy
Copy link

DevEddy commented Jul 30, 2021

Same problem here. Can't go with the workaround cause i am using a gradient color with alpha. With this SR4 is currently unusable for us.

@thisisthekap
Copy link
Contributor

@davidortinau As asked for in #14205: This is a regression.

@jfversluis
Copy link
Member

jfversluis commented Sep 2, 2021

@albilaga @thisisthekap and others, a PR is open for this now, would you be able to grab the NuGet from that as described here and let us know if this fixes this issue?

@DevEddy
Copy link

DevEddy commented Sep 2, 2021

Hey @jfversluis, I can confirm that version 5.0.0.7409 fixes the issue, good job!

@jfversluis
Copy link
Member

Perfect @DevEddy thanks! Did you by any chance also play around with it some more besides this issue? Just to make sure this doesn't cause any other unintended things :)

Triage automation moved this from Ready For Work to Closed Sep 3, 2021
5.0.0 SR 5 (Planning) automation moved this from Issues In Progress to Done Sep 3, 2021
@DevEddy
Copy link

DevEddy commented Sep 3, 2021

Hi @jfversluis, yeah, everything we use seems to work correctly. I didn't find any issues on iOS.

@jfversluis
Copy link
Member

jfversluis commented Sep 3, 2021

Great! I did some testing and seemed good too. Merged, should be part of the next service release!

Thanks for helping us test this!

@albilaga
Copy link
Author

albilaga commented Sep 5, 2021

Yeah this is working @jfversluis . Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

5 participants