bitwarden-android/src/App/Controls/FormEntryCell.cs

39 lines
1 KiB
C#
Raw Normal View History

using Xamarin.Forms;
namespace Bit.App.Controls
{
public class FormEntryCell : ExtendedViewCell
{
public FormEntryCell(string labelText, Keyboard entryKeyboard = null, bool IsPassword = false)
{
Label = new Label
{
Text = labelText,
FontSize = 14,
2016-05-17 06:54:24 +03:00
TextColor = Color.FromHex("777777"),
VerticalOptions = LayoutOptions.Start
};
Entry = new ExtendedEntry
{
Keyboard = entryKeyboard,
2016-05-17 06:54:24 +03:00
HasBorder = false,
2016-05-19 06:55:30 +03:00
VerticalOptions = LayoutOptions.CenterAndExpand
};
var stackLayout = new StackLayout
{
Padding = new Thickness(15)
};
stackLayout.Children.Add(Label);
stackLayout.Children.Add(Entry);
View = stackLayout;
}
public Label Label { get; private set; }
public ExtendedEntry Entry { get; private set; }
}
}