How to create a type of "DIV" in Xamarin Forms

Asked

Viewed 146 times

1

How do I create a component that looks like a div in Xamarin Forms ? I need to create something inside that will have some labels with information referring to the user’s address, and will be displayed according to the address list he has.

Example:

inserir a descrição da imagem aqui

  • Hello, the citizen here explained about the use of layouts and the differences with respect to the "div" tag of the HTML: http://stackoverflow.com/questions/37813633/xamarin-forms-counterpartto-div-in-xaml

  • I think what Grid whatever it is you’re looking for.

  • @rubStackOverflow guy, I thought of a stackLayout, I did here, only I don’t know if you can create the stacklayouts according to the amount of records that the list has. You know if it’s possible to do it that way ?

  • You can, but if you’re going to create stacklayouts is not recommended for performance reasons. See here an example of using with Grid https://developer.xamarin.com/guides/xamarin-forms/templates/data-templates/creating/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.