Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Adding platform specific magic to cross-platform Xamarin Forms apps

377 vues

Publié le

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

Publié dans : Technologie
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

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)

×