public NativeTextBox(WindowHost form, INativeTextBoxControl control) { var bounds = control.Bounds.ToDrawing(); Visible = true; Location = Point.Empty; Size = new Size(200, 30); BorderStyle = BorderStyle.None; Multiline = false; BackColor = Color.White; ForeColor = Color.Black; MaxLength = control.MaxLength; form.Controls.Add(this); AcceptsReturn = true; Disposed += (o, e) => { form.Redraw(); }; Show(); Focus(); crossControl = control; Text = control.Text; }
public Task <INativeTextBox> CreateNativeTextBox(INativeTextBoxControl control) => parentWindow.NativeWindow.CreateNativeTextBox(control);