2016-05-13 07:11:32 +03:00
|
|
|
|
using System;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Controls
|
|
|
|
|
{
|
2016-05-18 04:28:19 +03:00
|
|
|
|
public class FormEditorCell : ExtendedViewCell
|
2016-05-13 07:11:32 +03:00
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
{
|
2016-06-14 03:03:16 +03:00
|
|
|
|
Padding = new Thickness(15, 10)
|
2016-05-13 07:11:32 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
stackLayout.Children.Add(Editor);
|
|
|
|
|
|
|
|
|
|
View = stackLayout;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ExtendedEditor Editor { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|