Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 14576 [details]
On Windows Phone, a RelativeLayout inside another RelativeLayout will always be visible when it is first rendered even if IsVisible = false.
### Steps to Reproduce
1. Run the attached Windows Phone project
### Expected Results
The blue RelativeLayout will not be visible.
### Actual Results
The blue RelativeLayout is visible even though IsVisible is set to false in XAML. The button is supposed to toggle between visibility states, but the first press does not hide the layout. Only after subsequent presses does the layout’s visibility toggle. This makes me think that the issue is the native FrameworkElement not being in sync with the RealtiveLayout’s IsVisible property.
Use a custom renderer for the inner RelativeLayout and inside OnElementChanged() set
> this.Visibility = Visibility.Collapsed;
Reproduced the issue with Form 2.0.0 and 2.0.1-pre1. However, the issue doesn’t exist in version 1.5.1.