UML to XOJO

I want to add one class to another. Here’s an image of the diagram.

Now, here’s the code, as I understand it:

Var cell As MobileTableCellData = Publicaciones.CreateCustomCell(GetTypeInfo(Contenido))
Var container As MyTableCell = MyTableCell(cell.Control)
container.NameLabel.Text = "Some Text"
Table1.AddRow(0, cell)

It’s not working.
Is this correct?

Its not working is pretty vague.

Do you get an error?

Where is this code, exactly?

================

You design a MobileTableCustomCell visually, with controls etc.

Yours is called Contenido

In a DataSource, you will have a method called RowData

That provides you with a table, a row number, and a section number ( you might only have one section), like this:

table As iOSMobileTable, section As Integer, row As Integer

To add a row to the table, your code would look like this:

Var cell As mobileTableCellData = Table.CreateCustomCell(GetTypeInfo(Contenido))
var customCell As Contenido = Contenido(cell.Control)

customcell.NameLabel.Text = "Some Text"

Return cell

It is the return cell that adds a row to the table

What class are you using to put this code?
Isn’t it possible to avoid using the DataSource class?

Solo veo los siguientes eventos: