This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5b9ad75
commit ef6414e
Showing
3 changed files
with
104 additions
and
38 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2223.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using Xamarin.Forms; | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using NUnit.Framework; | ||
using Xamarin.UITest; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve (AllMembers = true)] | ||
[Issue (IssueTracker.Github, 2223, "Possibility to change IsPassword", PlatformAffected.macOS)] | ||
public class Issue2223 : TestContentPage | ||
{ | ||
protected override void Init () | ||
{ | ||
var checkEntry = new Entry | ||
{ | ||
HeightRequest = 100, | ||
FontSize = 50, | ||
Placeholder = "I can be both secure and non-secure" | ||
}; | ||
Content = new StackLayout | ||
{ | ||
Padding = new Thickness(100), | ||
Children = { | ||
checkEntry, | ||
new Button | ||
{ | ||
HeightRequest = 80, | ||
FontSize = 40, | ||
BackgroundColor = Color.LightBlue, | ||
TextColor = Color.Black, | ||
Text = "Click me to change IsPassword of the entry", | ||
Command = new Command(() => checkEntry.IsPassword = !checkEntry.IsPassword) | ||
} | ||
} | ||
}; | ||
} | ||
|
||
#if UITEST | ||
#endif | ||
|
||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters