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

[Bug] Using Background property animates brush appearance on iOS #14312

Open
DancesWithDingo opened this issue May 31, 2021 · 0 comments
Open

Comments

@DancesWithDingo
Copy link

Description

When the Background brush property is set on a control with IsVisible = false when the page is displayed, the brush will appear animated when visibility is set to true.

Steps to Reproduce

  1. Create a ContentPage with the following XAML:

     <Grid ColumnDefinitions="*,*" VerticalOptions="FillAndExpand">
         <Grid Grid.Column="0" x:Name="Right" BackgroundColor="Orange" IsVisible="false"/>
         <Grid Grid.Column="1" x:Name="Left" Background="OliveDrab" IsVisible="false"/>
     </Grid>
    
  2. Put this in the code-behind:

` void BackgroundBrush_Clicked(object sender, EventArgs e) {
Left.IsVisible = true;
}

    void BackgroundColor_Clicked(object sender, EventArgs e) {
        Right.IsVisible = true;
    }

`

  1. Run, and click each button.

Expected Behavior

Both columns should appear immediately when each button is pressed.

Actual Behavior

The left column appears normally. The right column (using Background property with a SolidColorBrush) animates from the top left to the bottom right.

Basic Information

  • Platform Target Frameworks:
    • iOS: 14.5

Environment

Screenshots

Animated GIF attached.
BackgroundBrushIssue

@DancesWithDingo DancesWithDingo added s/unverified New report that has yet to be verified t/bug 🐛 labels May 31, 2021
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Jun 1, 2021
@jsuarezruiz jsuarezruiz self-assigned this Jun 14, 2021
@jsuarezruiz jsuarezruiz added e/2 🕑 2 and removed s/unverified New report that has yet to be verified labels Jun 14, 2021
@jsuarezruiz jsuarezruiz moved this from New to Ready For Work in Triage Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Ready For Work
Development

No branches or pull requests

2 participants