Bug 34195 - BoxView does not inherit the IsVisible property from the ContentView
Summary: BoxView does not inherit the IsVisible property from the ContentView
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.4.4
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-23 04:10 UTC by Prashant Cholachagudda
Modified: 2015-10-12 07:34 UTC (History)
2 users (show)

Tags:
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:
RESOLVED FIXED

Description Prashant Cholachagudda 2015-09-23 04:10:12 UTC
When there is a BoxView inside of a ContentView, the BoxView IsVisible
property does not properly inherit it’s value from it’s parent. So if I
have a ContentView with a BoxView inside of it, if I turn the ContentView’s
IsVisible property to “true”, the BoxView will not render on the screen,
but it still takes up space.

On Android, if I set both IsVisible properties on the parent ContentView
and the BoxView, behavior is as expected, and the BoxView shows/hides when
the IsVisible property changes.

On iOS, if I set both IsVisible properties on the parent ContentView and
the BoxView, the state of IsVisible needs to be toggled from it’s initial
state of false, to true, to false, and then true before it will appear.

Test case: https://github.com/jevenson/BoxViewTest

Notice line 39 of BoxViewText/BoxViewText.cs. Run the application with this line
uncommented, and then run it again commented out for both iOS and Android.

Looks related to the bug #22673
Comment 1 Josh Evenson 2015-09-23 14:41:53 UTC
Just as a note, this is related to the Android Component as well
Comment 2 Rui Marinho 2015-10-12 07:34:30 UTC
This is fixed in 1.5.0 stable release.