MonoMobile.Views.EntryAttribute.EntryCellView.EntryCellView C# (CSharp) Method

EntryCellView() public method

public EntryCellView ( RectangleF frame ) : System
frame System.Drawing.RectangleF
return System
			public EntryCellView(RectangleF frame) : base(frame)
			{
				KeyboardType = UIKeyboardType.Default;
				EditModeValue = EditMode.WithCaption;
	
				InputView = new UIPlaceholderTextField(new RectangleF(5, 0, frame.Width - 10, frame.Height)) 
				{ 
					AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight,
		
					BackgroundColor = UIColor.Clear, 
					VerticalAlignment = UIControlContentVerticalAlignment.Center,
					AutocorrectionType = AutocorrectionType,
					AutocapitalizationType = AutocapitalizationType,
					Tag = 1 
				};
			
				InputView.Started += (s, e) =>
				{
					if (ClearOnEdit)
					{
						InputView.Text = string.Empty;
					}
	
					//DataContextProperty.ConvertBack<string>();				
				};
				
				InputView.ShouldReturn = UITextField =>
				{
					InputView.ResignFirstResponder();
	
					return true;
				};
					
				InputView.EditingDidEnd += (sender, e) => 
				{
					if (AutocapitalizationType == UITextAutocapitalizationType.AllCharacters)
					{
						InputView.Text = InputView.Text.ToUpper();
					}

					DataContext.Value = InputView.Text;
					InputView.Text = DataContext.Value.ToString();
				};
								
				InputView.EditingDidEndOnExit += (sender, e) =>
				{
					InputView.ResignFirstResponder();
				};

				Add(InputView);
			}