Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Adding platform specific magic to cross-platform Xamarin Forms apps

351 views

Published on

This talk covers using effects and custom renderers to add platform specific tweaks to cross-platform Xamarin Forms apps.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Adding platform specific magic to cross-platform Xamarin Forms apps

  1. 1. Adding platform specific magic to cross-platform Xamarin Forms apps
  2. 2. Jim Bennett Mobile developer at EROAD in New Zealand @JimBobBennett http://JimBobBennett.io https://github.com/jimbobbennett
  3. 3. Learn how to build native, cross- platform Xamarin apps using MVVM http://xam.jbb.io Use code ‘ctwndcsyd17’ for 40% off
  4. 4. Xamarin Forms One native UI to rule them all
  5. 5. Upside
  6. 6. It runs on all platforms!
  7. 7. Downside
  8. 8. It runs on all platforms!
  9. 9. Power comes with a price
  10. 10. Xamarin.Forms Regular Bold AndroidiOS UltraLight Thin Light Regular Medium SemiBold Bold Heavy Black
  11. 11. Designer says - “Use a light font!” Hello World Hello World Xamarin Forms: Designer wants:
  12. 12. Effects Custom Renderers
  13. 13. Effects
  14. 14. Demo
  15. 15. Custom renderers
  16. 16. [assembly: ExportRenderer(typeof(Entry), typeof(MyEntryRenderer))]

  17. 17. [assembly: ExportRenderer(typeof(Entry), typeof(MyEntryRenderer))] public class MyEntryRenderer : EntryRenderer
 {
 … }
  18. 18. Demo
  19. 19. Which one to use?
  20. 20. Jim Bennett Mobile developer at EROAD in New Zealand @JimBobBennett http://JimBobBennett.io https://github.com/jimbobbennett http://xam.jbb.io (use code ctwndcsyd17)

×