xamarin.forms (northern va mobile c# developers group 8/13/14)
Post on 02-Jul-2015
230 Views
Preview:
DESCRIPTION
TRANSCRIPT
XAMARIN 3 AND XAMARIN.FORMS
Ed Snider
Aug 13 2014
NoVA Mobile C# Dev Group
CONTENT
Introduction
What is Xamarin?
Quick Review: Native Multi-Platform Mobile Architecture
What’s new with Xamarin 3
Xamarin iOS Designer
Xamarin Studio IDE Updates
Xamarin.Forms
Wrap up
INTRODUCTION
Ed Snider - @edsnider
Developer at InfernoRed Technology
Co-Organizer of NoVA Mobile C# Developers’ Group
www.infernored.com@infernoredtech
www.novamobiledev.org@novamobiledev
WHAT IS XAMARIN?
XAMARIN…
Xamarin is built on Mono
Allows native app compilation on Android and iOS using C#
100% API Coverage – All iOS and Android APIs are exposed as C# class libraries
Up-to-date with API releases from Apple and Google
WINDOWS APIS
100% Coverage
IOS APIS
100% Coverage
ANDROID APIS
100% Coverage
HOW XAMARIN WORKS
C# + .NET Runtime
Native UI
Native Performance
XAMARIN DEVELOPMENT TOOLS
Xamarin for Visual Studio Xamarin Studio for Windows and Mac
QUICK REVIEW: NATIVE MULTI-PLATFORM MOBILE ARCHITECTURE
THE PROBLEM WITH TRADITIONAL NATIVE MOBILE APP DEV…Native mobile apps are great but here’s the problem:
Several Platforms: Windows, iOS, Android
Several Languages: C#, Objective-C, Java
Maintenance nightmares
Customers and end-users suffer
THE BENEFITS OF MULTI-PLATFORMNATIVE MOBILE APP DEV WITH C#Develop for all platforms with a single language – C# - using Xamarin
Harness the power of the .NET framework
Single solution with shared code
Unified and consistent maintenance/testing
Feature parity across platforms = happy end users
WHAT’S NEW WITH XAMARIN 3?
BRAND NEW IOS DESIGNER
Fully integrated in Xamarin Studio and Visual Studio
iOS 6 / 7 Storyboard support
Intuitive event handling
Support for auto-layout
Custom controls live preview
XAMARIN STUDIO IDE ENHANCEMENTSNuGet Package Manager
Shared Projects
.NET BCL Documentation
F# Support
XAMARIN.FORMS
Set of APIs that abstract platform specific UI elements and behaviors
Write UI code once and it is rendered natively across iOS, Android and Window Phone
Use C# and/or XAML
Ships as NuGet packages
Views can now live in the PCL
Mix and match with platform APIs
Shared UI Code
XAMARIN.FORMS CONTROLS
Pages (e.g., Master-detail, Tabs, Carousel)
Layouts (e.g., Stack, Grid)
Views (e.g., Button, Label)
Cells (e.g., templates for table/list items)
XAMARIN.FORMS PAGES
Xamarin.Forms.Page
Represents UI screens
Page = Activity on Android
Page = View Controller on iOS
Page = Page on Windows Phone
Xamarin.Forms Pages Documentation
XAMARIN.FORMS LAYOUTS
Represents UI containers
Logically structures UI elements
Xamarin.Forms Layouts Documentation
XAMARIN.FORMS VIEWS
Represents UI controls
Implemented natively and platform specific
Entry = EditText on Android
Entry = UITextField on iOS
Entry = Textbox on Windows Phone
Xamarin.Forms Views Documentation
SOME OTHER COOL THINGS ABOUT XAMARIN…Component Store: http://components.xamarin.com/
.NET Mobility Scanner: http://scan.xamarin.com/
F#: http://developer.xamarin.com/guides/cross-platform/fsharp/fsharp_support_overview/
Xamarin Test Cloud: http://xamarin.com/test-cloud
RESOURCES
Xamarin.Forms Intro
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/introduction-to-xamarin-forms/
Code from my demo
https://github.com/edsnider/CoffeeFinder-XamarinFormsDemo
Image credit: https://octodex.github.com/
top related