Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Which layout to use for control?

$
0
0

Hi

I am wanting to create an app that has some "style" (read: not using standard UI controls) and am wondering what the best way and most performant method for creating repeatable and custom views.

The layout is basically a borderless Entry element, with a leading and trailing image, header label and a secondary hint label underneath the entry element.

Doing this is fine, but I am more curious as to the best approach to take to create the layout.

Option 1: StackLayout - a series of nested StackLayouts that hold each element
Option 2: Grid - just lay it all out in a grid
Option 3: Relative layout - with each component laid out inside a view
Option 4-6: A combination of the above

Also, are there any performance implications when using these as a custom Listview cell with possibly 10's or 100's of rows?


Viewing all articles
Browse latest Browse all 77050

Trending Articles