Bug 27304 - Toggling IsVisible for an element in a Grid row does not update properly
Summary: Toggling IsVisible for an element in a Grid row does not update properly
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.4
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-02-23 09:56 UTC by John Miller [MSFT]
Modified: 2015-03-09 17:45 UTC (History)
6 users (show)

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

Test Case (177.25 KB, application/zip)
2015-02-23 09:56 UTC, John Miller [MSFT]
Test Case with StackLayout (177.32 KB, application/zip)
2015-02-23 10:02 UTC, John Miller [MSFT]

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:

Description John Miller [MSFT] 2015-02-23 09:56:54 UTC
Created attachment 9977 [details]
Test Case


   The attached sample shows an issue when toggling the IsVisible property of some Entry controls inside a Grid row. 

**Steps to Reproduce:**

   1. Run the attached sample on an iOS simulator.
   2. Press the Toggle Visibility Button

**Actual Results:**

   The "Username" entry disappears. The "Password" entry is still visible. Neither of the other Entry controls is visible and should be.

**Expected Results:**

  The "Username" and "Password" Entry controls should disappear and two more, "New Password" and "Confirm Password", should appear in their place. 

**Build Date & Platform:**

   XF 1.3.4 and tested XF 1.3.5-pre1
Comment 1 John Miller [MSFT] 2015-02-23 10:01:18 UTC
Correction to what should happen:

When toggling the visibility, "Password", "New Password" and "Confirm Password" should be visible.
Comment 2 John Miller [MSFT] 2015-02-23 10:02:32 UTC
Created attachment 9978 [details]
Test Case with StackLayout

Added another Test Case that uses a StackLayout. The issue with the visibility only seems to happen with the StackLayout has a WidthRequest set. Remove the WidthRequest and you will see the Expected Results (correct).
Comment 3 Shruti 2015-02-26 08:09:58 UTC
I have checked this issue with the help of steps given in bug and able to reproduce the reported behaviour mention in bug description and in comment 2. 

Screencast : http://www.screencast.com/t/yZD47166VMGZ

Ide Log : https://gist.github.com/Udham1/0c1c3870d333559306c6
System Log : https://gist.github.com/Udham1/32413cf8f2a86c7b8c28
iOS Designer Log : https://gist.github.com/Udham1/bcf7e2c33a884239126a

Environment Info : 

Xamarin.Forms :

=== Xamarin Studio ===

Version 5.7.2 (build 7)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
	Mono 3.12.0 ((detached/b8f5055)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000077

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 862702c
Build date: 2015-02-18 15:19:23-0500

=== Build Information ===

Release ID: 507020007
Git revision: dcf3f486177d3e625349b51a8f3be807e3fa7712
Build date: 2015-02-24 09:14:27-05
Xamarin addins: ea7c65bb7876e4a876ab365208e94acdf8f330ef

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 4 Rui Marinho 2015-03-03 05:35:32 UTC
This is not a issue. There's a problem in the code, as you are not binding the password IsVisible="{Binding IsLoginMode}" . if you add that it works as expected.
Comment 5 mpress 2015-03-03 05:39:21 UTC
That's because the password entry is always visible so it doesn't require a binding. The other entry controls with bindings on the IsVisible properties do not display if they are not initially rendered.
Comment 6 mpress 2015-03-03 05:52:37 UTC
Hi Rui, Can this bug be re-opened?
Comment 7 Rui Marinho 2015-03-03 09:01:33 UTC
Ok, i understand the issue now.
Comment 8 Eric Maupin 2015-03-09 17:45:26 UTC
Should be fixed in 1.4.1-pre1