O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Building ‘real-world’ apps
with Xamarin.Forms
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Michael Ridland
Xamarin Consultant / Founder
@ Xa...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Developed Apps WITHOUT Xamarin.Forms
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Developed Apps WITH Xamarin.Forms
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
My experiences and tips.
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Good Parts
Fast and Easy (Generally)
good featu...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Not Good Parts
At the moment it still stuffers f...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Don’t fight the Framework
‘I want Cancel h...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Don’t fight the Framework
33,000
.NET
BIG? ...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Don’t fight the Framework
It’s 3-10 times m...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Style with StackLayout and BoxView
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Prototype
• Prototype your app in Xamarin.F...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - MessagingCentre
• Publish/Subscribe
• Great...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Device.StartTimer
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Bindable Property Code Template
public stat...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Use a Mvvm
Preferable one with a Convention...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Layer Views using AbsoluteLayout
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Easy dialogs with Acr-Xamarin-Forms
Easily ...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Fill the gaps with Xamarin.Forms.Labs
What ...
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Labs Demo
Warning - Don’t try labs on your first d...
michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com
Tip - Use the Source
Xamarin.Forms Source (Can us...
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Yes! (Probably)
There’s some sucky parts, but it’s...
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Tip - Hire Me ;) - www.michaelridland.com
All your...
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Live Coding - Rolling your own Mvvm
www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com
Q & A
Michael Ridland
michael@xam-consulting.com
w...
Próximos SlideShares
Carregando em…5
×

Building real world apps with Xamarin.Forms

1.300 visualizações

Publicada em

Slides from my presentation at Brisbane Xamarin Hack day.

In this presentation I go over some tips and tricks for Building Xamarin.Forms apps in the 'Real World'.

If you would like to know more about Xamarin and Xamarin.Forms in real world apps, you can hire me at http://www.michaelridland.com.

Publicada em: Celular
  • Entre para ver os comentários

Building real world apps with Xamarin.Forms

  1. 1. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Building ‘real-world’ apps with Xamarin.Forms
  2. 2. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Michael Ridland Xamarin Consultant / Founder @ Xam Consulting (xam-consulting.com) Xamarin Specialists - We work with Xamarin all day and night.
  3. 3. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Developed Apps WITHOUT Xamarin.Forms
  4. 4. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Developed Apps WITH Xamarin.Forms
  5. 5. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com My experiences and tips.
  6. 6. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Good Parts Fast and Easy (Generally) good features/extensibility points - custom renderers, message centre etc. Anything you can do in a Native app you can do in Xamarin.Forms
  7. 7. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Not Good Parts At the moment it still stuffers from common denominator. e.g. Save and Cancel are different on Android, iOS and WP. The coverage of UI elements isn’t huge Tiny Cuts - No Bordering, Padding, Radius, ToolBarButtons only on rightside, Only TapGestureRegonizers, Picker not databound Missing extensibility points, when tapping into Framework (unless you do a fully custom page/viewcontroller)
  8. 8. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - 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’… If you use Xamarin.Forms, try not to bring in pre conceptions of how you want your UI to be. You can build nice UI’s with Xamarin.Forms but you just need to be within it’s constraints and no swipe cells.
  9. 9. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Don’t fight the Framework 33,000 .NET BIG? 40,000(Forms)4,000+
  10. 10. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Don’t fight the Framework It’s 3-10 times more expensive but you can still do anything that you can do in Native
  11. 11. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Style with StackLayout and BoxView
  12. 12. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Prototype • Prototype your app in Xamarin.Forms.. see if it’s going to work… • Traditional Xamarin.iOS and Xamarin.Android is still great if you want a amazing experience on all platforms.
  13. 13. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - MessagingCentre • Publish/Subscribe • Great for communicating between different parts of app, especially between the Forms API and Native API • Don’t overdo it (can be abused like a goto statement)
  14. 14. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Device.StartTimer
  15. 15. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Bindable Property Code Template public static readonly BindableProperty $Name$Property = BindableProperty.Create<$owner$, $type$>(p => p.$Name$, default($type$)); public $type$ $Name$ { get { return ($type$)GetValue($Name$Property); } set { SetValue($Name$Property, value); } }
  16. 16. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Use a Mvvm Preferable one with a Convention over Configuration.
  17. 17. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Layer Views using AbsoluteLayout
  18. 18. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Easy dialogs with Acr-Xamarin-Forms Easily add Alerts/Prompts/Loading Dialogs using Acr (https://github.com/aritchie/acr-xamarin-forms) - It’s in nuget
  19. 19. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Fill the gaps with Xamarin.Forms.Labs What else is there? - More UI elements - HybridWebView can be useful when used with Razor! - INetwork service get the InternetConnectionStatus (WIFI)? - Photo library/take a photo - Extended TextFields - Fonts and Border properties - + More
  20. 20. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Labs Demo Warning - Don’t try labs on your first day. Warning 2 - It can be broken and part implemented
  21. 21. michael@xam-consulting.com www.xam-consulting.com www.michaelridland.com Tip - Use the Source Xamarin.Forms Source (Can use Assembly browser in XS) XLabs Source * The #1 documentation for Custom Renderers!
  22. 22. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Yes! (Probably) There’s some sucky parts, but it’s still better than every other option. Should I use Xamarin.Forms?
  23. 23. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Tip - Hire Me ;) - www.michaelridland.com All your pain goes away ….
  24. 24. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Live Coding - Rolling your own Mvvm
  25. 25. www.xam-consulting.com www.michaelridland.commichael@xam-consulting.com Q & A Michael Ridland michael@xam-consulting.com www.michaelridland.com

×