diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2017-03-27 12:26:56 -0500 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-03-27 18:26:56 +0100 |
commit | 90582e977734d40d2023537186ebcf79f826291e (patch) | |
tree | 728711ee44948f6f19dc94b201b6369542828f39 /Xamarin.Forms.Controls.Issues | |
parent | e3d213cbe7e9799ae454c7d1d9f56183f01c3317 (diff) | |
download | xamarin-forms-90582e977734d40d2023537186ebcf79f826291e.tar.gz xamarin-forms-90582e977734d40d2023537186ebcf79f826291e.tar.bz2 xamarin-forms-90582e977734d40d2023537186ebcf79f826291e.zip |
[WinRT/UWP] Enable selection in password entry (#677)
* [WinRT/UWP] Enable selection in password entry
* Remove unnecessary if
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 51 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45277.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45277.cs new file mode 100644 index 00000000..6a6baf54 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45277.cs @@ -0,0 +1,50 @@ +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +#if UITEST +using Xamarin.UITest; +using NUnit.Framework; +#endif + +namespace Xamarin.Forms.Controls.Issues +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 45277, "[WinRT/UWP] Entry with IsPassword = true does not allow selection of characters", PlatformAffected.WinRT)] + public class Bugzilla45277 : TestContentPage + { + protected override void Init() + { + var passwordTextLabel = new Label + { + Text = "[No Password Text Yet]" + }; + var passwordEntry = new Entry + { + IsPassword = true, + Placeholder = "Enter password" + }; + passwordEntry.Completed += (sender, args) => DisplayAlert("Enter pressed", "OK", "Cancel"); + passwordEntry.TextChanged += (sender, args) => + { + passwordTextLabel.Text = passwordEntry.Text; + }; + + Content = new StackLayout + { + Children = + { + new Label + { + Text = "The below label should allow Paste and Select All commands; however, copying via keyboard should not work." + }, + passwordEntry, + new Entry + { + Placeholder = "Entry for easily testing your paste functionality" + }, + passwordTextLabel + } + }; + } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index 8608dc72..4369eee3 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -173,6 +173,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45027.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45330.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44955.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45277.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45743.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla46458.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla46494.cs" /> |