Introduction to Xamarin.Forms

Post on 27-Aug-2014

2.659 views 2 download

Tags:

description

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.

Transcript of Introduction to Xamarin.Forms

Portable Class Libraries!

James Montemagno! Developer Evangelist, Xamarin!

@JamesMontemagno !blog.xamarin.com!

Xamarin + Xamarin.Forms!With Xamarin.Forms: !

more code-sharing, native controls!Traditional Xamarin approach!

Shared UI Code!

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!

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!

Pages!

Content" MasterDetail" Navigation" Tabbed" Carousel"

Layouts!

Stack" Absolute" Relative" Grid" ContentView" ScrollView" Frame"

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!

DEMO!

Model-View-ViewModel!

Model"View" ViewModel"

How to display information!

What to display!Flow of interaction!

Business Logic!Data objects!!

Events!

Data!Data!

Model-View-ViewModel!

Model"View" ViewModel"

Xamarin.Forms Data Binding"

Events!

Data!

Data Binding!

Data Binding!

Data Binding!

Data Binding!

Commands!

§  Used to Execute a method when an action is performs, such as button click.!

§  Ability to pass parameter!

§  Ability to have CanExecute!

Commands!

Commands!

Commands!

DEMO!

Animations!

•  Cross-platform animations!

•  Platform-specific animation APIs!

•  Async/Await API!

DEMO!

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"

Key Attendees!

www.xamarin.com/evolve"

Get Started Today: xamarin.com/download"

Try Xamarin!Today!

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!