Bug 36197 - Visibility issue when fading in ContentView
Summary: Visibility issue when fading in ContentView
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-24 04:23 UTC by Philipp
Modified: 2016-11-21 15:54 UTC (History)
7 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Philipp 2015-11-24 04:23:49 UTC
After https://bugzilla.xamarin.com/show_bug.cgi?id=36002 has been fixed with the latest release, we still have an issue when the ContentView is faded in.

See the following project: https://github.com/philippd/ContentView-Bug.git 

- Tap on Show
- Tap on Hide
- Tap on Show again

-> the label is not shown

Workaround: Setting the ContentView to visible and opacity to zero before changing the content works.
Comment 1 adrianknight89 2016-09-25 05:23:30 UTC
The issue has to do with you creating a "new" Label every time you hit the first button. If you change the Text property instead of allocating a new Label, then it works. I'm not sure why a new object creates a problem.

Try using

(testContent.Content as Label).Text = $"Hello {count++}";

Still, I'd prefer a fix or explanation why this is the case.
Comment 2 Paul DiPietro [MSFT] 2016-11-17 15:40:11 UTC
This appears to no longer occur under the latest prerelease (2.3.3-pre4) compared to the version attached to the reproduction.
Comment 3 Parmendra Kumar 2016-11-21 15:54:06 UTC
I have checked this issue and observed that this issue no longer reproducible with 2.3.2.127.

Hence closing this issue.