45. www.xam-consulting.com www.michaelridland.com
Grid
Not difficult to use (nearly as easy as StackLayout)
Works well with XAML (unlike relative)
Can be used to create overlays/advanced UIs
Easy to reduce nesting
Easy to reduce layout cycles (Star and Static
Widths/Heights)
46. www.xam-consulting.com www.michaelridland.com
ListView with Cell Recycling
Much faster now with Cell Recycling
Use the DataTemplateSelector for different cell styles
Alternative to Grid when there’s a dynamic numbers of rows
Avoid add/remove views when binding context change
47. www.xam-consulting.com www.michaelridland.com
Images on Android (especially in list)
Performance and Memory Issues
Use FFImageLoader
Image Caching
Image Resizing
If the Image is local, it can still have issues in lists. We sometimes do a
full custom renderer native cell for Android only.
50. www.xam-consulting.com www.michaelridland.com
Today’s Challenge
Build a view (maybe from http://snppts.io/latest or dribble)
It can be simplified or adapted depending on your experience
Improve the performance
http://kent-boogaart.com/blog/jason-smith's-xamarin-forms-performance-
tips
https://evolve.xamarin.com/session/56e205b0bad314273ca4d817
https://developer.xamarin.com/guides/xamarin-
forms/deployment,_testing,_and_metrics/performance/
As you will see in our demos with Xamarin.Forms that 75% shared code can go even higher.
Fully native apps written in C#
Share on average 75% source code across platforms
C# + .NET Runtime
Native UI
Native Performance
As you will see in our demos with Xamarin.Forms that 75% shared code can go even higher.
Fully native apps written in C#
Share on average 75% source code across platforms
C# + .NET Runtime
Native UI
Native Performance