11. www.xam-consulting.com www.michaelridland.com
Tip #3 - Be Patient
âȘ Mobile is hard, expect to encounter issues and
frustrations
âȘ Estimate accordingly, if youâre used to estimating
web projects multiple it by 3-5
âȘ Xamarin dev is not a walk in the park, but it has
good outcomes, eg Fast Native App
12. www.xam-consulting.com www.michaelridland.com
Tip #4 - Donât fight the Framework
âȘ âI want Cancel here because thatâs how I do it in iOSââŠ
âȘ âI want swipe cell because thatâs how I do it in iOSââŠ
âȘ You can build nice UIâs with Xamarin.Forms but you just
need to be within itâs constraints.
âȘ You can change your UI to match whatâs âIn the boxâ
13. www.xam-consulting.com www.michaelridland.com
Tip #4 - Donât fight the Framework
Itâs 3-10 times more expensive
but you can still do anything that you can do in Native
Once you break-out (custom renderer)
14. www.xam-consulting.com www.michaelridland.com
Tip #5 - Grid can be Awesome
âȘ Not difficult to use (nearly as easy as
StackLayout)
âȘ Works well with XAML (unlike relative)
âȘ Faster than StackLayout
âȘ Can be used to create overlays/
advanced UIs
15. www.xam-consulting.com www.michaelridland.com
Tip #6 - ListView Performance Tips
âȘ Step 1 - Use CS over XAML
âȘ Step 2 - Use Grid/Absolute Layout
âȘ Step 3 - Try FastCell Implementation (link?)
âȘ Step 4 - Create a Custom Native Cell
âȘ Step 5 - Any tips from the crowd?
16. www.xam-consulting.com www.michaelridland.com
Tip #7 - TaskCompletionSource
âȘ Many NativeAPIs are based on events/callbacks
âȘ Use TaskCompletionSource to support async
âȘ http://www.michaelridland.com/xamarin/
taskcompletionsource-xamarin-beautiful-async/
19. www.xam-consulting.com www.michaelridland.com
Tip #9 - Forms->Native->Forms - The Xamarin.Forms Holy Grail
âȘTake a Xamarin.Forms Views and Convert into
a Native View to use
âȘGreat for using with Custom Renderers
âȘGreat for using with Native Components
âȘDemo!
20. www.xam-consulting.com www.michaelridland.com
Tip #10 - Add Xamarin.Forms to your MvvmCross App
âȘ https://github.com/rid00z/
MvvmCrossNavigationDemo
âȘ Perfect if you already have a MvvmCross
application and would like a few Xamarin.Form
pages
âȘ Demo!
22. www.xam-consulting.com www.michaelridland.com
Bonus Tip - App Statics Anti-Pattern
âą Using global statics for Navigation in your App
âą Itâs a recipe for a big ball of mud
âą Itâs easy to begin with - but in the end all your code becomes tightly
coupled
Bad - Donât do this!