StackLayout__with a single child does not make sense.
Grid_layout by using a combination of
Fill/FillAndExpand, not mentioning it during the views creation is the best practice.
RelativeLayout_**_if at all possible. It has significant overhead and is never recommended.
AbsoluteLayout, avoid using the
AbsoluteLayout.Autosize__property whenever possible.
Grid, try to ensure that there as few rows and columns as possible that are set to
Auto, which makes the engine perform additional calculations. Instead, use fixed-size rows and columns if possible.
Layoutclass, as they result in the performance of expensive layout calculations. Instead, it's likely that the desired layout can be obtained by setting the
TranslationYproperties. Alternatively, you can subclass the
Layout<View>class to achieve the desired layout behavior.
Labelonly when required, as changing the size of a label can result in the entire screen layout being recalculated.
HorizontalTextAlignmentproperty unless required.
ScrollViewis a very bad practice. Always avoid it. Use the
TableViewwhere you can use a
TableViews are usually recommended for a setting like UI.
ListViewCachingStrategy.RecycleElementwhen you can. This is not the default caching strategy.
DataTemplateselectors to facilitate heterogeneous views within a single
ListView. Don’t override
OnBindingContextChangedto update and achieve the same effect.
IEnumerable<T>as a data source to
ListViews. Instead, try to use
IEnumerable<T>collections don't support random access.
ListViews is a bad practice. Instead, use groups within a single
ListView. Nesting is explicitly unsupported and will break your application.
ListViewhas rows of differing sizes. If the content of the cell is modified dynamically (perhaps after loading it from the database), be sure to call
ForceUpdateSize()on the cell.
Gridto help reduce nesting.
Fillis the cheapest to compute).
CarouselPageas much as possible; instead use a
ContentPage. The reason for this is that
CarouselPageloads all the data at once, which hampers performance at extreme levels.