blob: 4dd635c41a405f984917c03bb2ab49656a83536f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 37863, "Password is readable when Entry.IsEnabled is false ",
PlatformAffected.WinPhone)]
public class Bugzilla37863 : TestContentPage
{
protected override void Init ()
{
var label = new Label {
Text =
"Click the button to toggle IsEnabled on the password entry below. The actual password text should never show. If the text shows, the test has failed."
};
var entry = new Entry { IsPassword = true, Text = "swordfish" };
var button = new Button { Text = "Toggle IsEnabled" };
button.Clicked += (sender, args) => { entry.IsEnabled = !entry.IsEnabled; };
Content = new StackLayout {
Children = { label, entry, button }
};
}
}
}
|