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:
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
@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/
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
– rodrigorf
I think what
Grid
whatever it is you’re looking for.– rubStackOverflow
@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 ?
– AndreeH
You can, but if you’re going to create
stacklayouts
is not recommended for performance reasons. See here an example of using withGrid
https://developer.xamarin.com/guides/xamarin-forms/templates/data-templates/creating/– rubStackOverflow