mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 23:54:06 +03:00
35 lines
806 B
C#
35 lines
806 B
C#
|
using System;
|
|||
|
using Xamarin.Forms;
|
|||
|
|
|||
|
namespace Bit.App.Controls
|
|||
|
{
|
|||
|
public class FormEditorCell : ViewCell
|
|||
|
{
|
|||
|
public FormEditorCell(Keyboard entryKeyboard = null, double? height = null)
|
|||
|
{
|
|||
|
Editor = new ExtendedEditor
|
|||
|
{
|
|||
|
Keyboard = entryKeyboard,
|
|||
|
HasBorder = false
|
|||
|
};
|
|||
|
|
|||
|
if(height.HasValue)
|
|||
|
{
|
|||
|
Editor.HeightRequest = height.Value;
|
|||
|
}
|
|||
|
|
|||
|
var stackLayout = new StackLayout
|
|||
|
{
|
|||
|
Padding = new Thickness(15, 15, 15, 0),
|
|||
|
BackgroundColor = Color.White
|
|||
|
};
|
|||
|
|
|||
|
stackLayout.Children.Add(Editor);
|
|||
|
|
|||
|
View = stackLayout;
|
|||
|
}
|
|||
|
|
|||
|
public ExtendedEditor Editor { get; private set; }
|
|||
|
}
|
|||
|
}
|