Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
CSSUtils.SetStyleProperty(TextField1, "-fx-padding", "0 0 0 0") '(no need to cast B4XView)
TextField1.SetTextAlignment("TOP", "LEFT")
TextField1.Text = "Aaa"
End Sub