class UserModel : ViewModel() { val userProperty = SimpleObjectProperty(User()) var user by userProperty init { rebindOnChange(userProperty) } val login = bind { user.login } val password = bind { user.password } }