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’
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!