Bug 44954 - [Windows] Toggling IsPassword on Multiple Entries Causes Crash
Summary: [Windows] Toggling IsPassword on Multiple Entries Causes Crash
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows (show other bugs)
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-09-30 19:33 UTC by Jimmy [MSFT]
Modified: 2016-11-25 10:32 UTC (History)
3 users (show)

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

repro solution (151.34 KB, application/zip)
2016-09-30 19:33 UTC, Jimmy [MSFT]

Description Jimmy [MSFT] 2016-09-30 19:33:27 UTC
Created attachment 17834 [details]
repro solution

### Overview
On Windows, toggling IsPassword on more than one Entry control will crash the app with a System.ArgumentException: https://gist.github.com/jimmgarrido/403889f0bba3558daa6a3b4c43ac9f48

The exception is being thrown when trying to set the TextBox's InputScope here: https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.WinRT/FormsTextBox.cs#L322

### Steps to Reproduce
1. Run the attached repro project (Windows 8.1 or UWP)
2. Press "Toggle First Password"
3. Press "Toggle Second Password"

### Expected Results
The text in both Entry controls will be obfuscated.

### Actual Results
The app will crash.

### Testing Info
Tested on WinRT and UWP with Forms 2.3.3-pre2
Comment 1 Jimmy [MSFT] 2016-09-30 19:52:23 UTC
Pull request submitted for this issue: https://github.com/xamarin/Xamarin.Forms/pull/405
Comment 2 Stephane Delcroix 2016-10-11 19:06:57 UTC
should be fixed in 2.3.4-pre1
Comment 3 Parmendra Kumar 2016-11-25 10:32:22 UTC
I have checked this issue with Xamarin.Forms 2.3.4-pre1 and this issue has been fixed.

Hence closing this issue.


Note You need to log in before you can comment on or make changes to this bug.