Introduction to Xamarin.Forms

9,138 views

Published on

Xamarin.Forms is a new library that enables you to build native UIs for iOS, Android and Windows Phone from a single, shared C# codebase. It provides more than 40 cross-platform controls and layouts which are mapped to native controls at runtime, which means that your user interfaces are fully native.

Join Xamarin developer James Montemagno for an in-depth overview of Xamarin.Forms, and see how you can get started with Xamarin.Forms today.

Published in: Software, Technology, Business

Introduction to Xamarin.Forms

  1. 1. Portable Class Libraries! James Montemagno! Developer Evangelist, Xamarin! @JamesMontemagno! blog.xamarin.com!
  2. 2. Xamarin + Xamarin.Forms! With Xamarin.Forms: ! more code-sharing, native controls! Traditional Xamarin approach! Shared UI Code!
  3. 3. Xamarin + Xamarin.Forms! Shared UI Code! Quickly and easily build native user interfaces using shared code! ! Xamarin.Forms elements map to native controls and behaviors! ! Mix-and-match Xamarin.Forms with native APIs!
  4. 4. What’s Included! §  40+ Pages, Layouts, and Controls! §  Build from code behind or XAML! §  Two-way Data Binding! ! §  Navigation! §  Animation API! §  Dependency Service! §  Messaging Center!
  5. 5. Pages! Content" MasterDetail" Navigation" Tabbed" Carousel"
  6. 6. Layouts! Stack" Absolute" Relative" Grid" ContentView" ScrollView" Frame"
  7. 7. Controls! ActivityIndicator! BoxView! Button! DatePicker! Editor! Entry! Image! Label! ListView! Map! OpenGLView! Picker! ProgressBar! SearchBar! Slider! Stepper! TableView! TimePicker! WebView! EntryCell! ImageCell! SwitchCell! TextCell! ViewCell!
  8. 8. DEMO!
  9. 9. Model-View-ViewModel! Model"View" ViewModel" How to display information! What to display! Flow of interaction! Business Logic! Data objects! ! Events! Data! Data!
  10. 10. Model-View-ViewModel! Model"View" ViewModel" Xamarin.Forms Data Binding" Events! Data!
  11. 11. Data Binding!
  12. 12. Data Binding!
  13. 13. Data Binding!
  14. 14. Data Binding!
  15. 15. Commands! §  Used to Execute a method when an action is performs, such as button click.! §  Ability to pass parameter! §  Ability to have CanExecute!
  16. 16. Commands!
  17. 17. Commands!
  18. 18. Commands!
  19. 19. DEMO!
  20. 20. Animations! •  Cross-platform animations! •  Platform-specific animation APIs! •  Async/Await API!
  21. 21. DEMO!
  22. 22. Learn more! Unrivaled Mobile Development Training! Live unlimited mobile development training from mobile experts, ! in your time-zone, on your schedule and as often as you'd like! www.xamarin.com/university"
  23. 23. Key Attendees! www.xamarin.com/evolve"
  24. 24. Get Started Today: xamarin.com/download"
  25. 25. Try Xamarin! Today!
  26. 26. Resources! •  Amazing Docs! •  http://developer.xamarin.com/guides/cross-platform/xamarin-forms/! •  Samples! •  https://github.com/xamarin/xamarin-forms-samples! •  Hanselman App! •  https://github.com/jamesmontemagno/Hanselman.Forms! •  Download: xamarin.com! •  Me: @JamesMontemagno | www.MotzCod.es!

×