1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 10:13:42 +00:00

added instruction label to pin code screens

This commit is contained in:
Kyle Spearrin
2016-07-23 15:58:50 -04:00
parent 4a136315d5
commit 7b083d5d0d
7 changed files with 94 additions and 41 deletions

View File

@@ -32,6 +32,15 @@ namespace Bit.App.Pages
public void Init()
{
var instructionLabel = new Label
{
Text = "Enter your PIN code.",
LineBreakMode = LineBreakMode.WordWrap,
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
HorizontalTextAlignment = TextAlignment.Center,
Style = (Style)Application.Current.Resources["text-muted"]
};
PinControl = new PinControl();
PinControl.OnPinEntered += PinEntered;
PinControl.Label.SetBinding<PinPageModel>(Label.TextProperty, s => s.LabelText);
@@ -48,13 +57,14 @@ namespace Bit.App.Pages
var stackLayout = new StackLayout
{
Padding = new Thickness(30, 40),
Spacing = 10,
Children = { PinControl.Label, logoutButton, PinControl.Entry }
Spacing = 20,
Children = { PinControl.Label, instructionLabel, logoutButton, PinControl.Entry }
};
var tgr = new TapGestureRecognizer();
tgr.Tapped += Tgr_Tapped;
PinControl.Label.GestureRecognizers.Add(tgr);
instructionLabel.GestureRecognizers.Add(tgr);
Title = "Verify PIN";
Content = stackLayout;