building cross platform apps with c# & vs · xamarin’s unique approach ios c# ui android c#...

Post on 25-May-2020

13 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Building Cross PlatformApps with C# & VS Mike JamesDeveloper EvangelistXamarin

Who is this guy?

Mike JamesXamarin Program Manager @ Microsoft

mikecodes.net

Who is this guy?

Beer Drinkin StepCounter Dutch Spelling HydrateiOS & Azure iOS & Android iOS OS X

London Eye

Cross platform developer

Build Apps

Multiple Times

Lowest

Common

Denominator

Xamarin’s Unique Approach

iOS C# UI Windows C# UIAndroid C# UI

Shared C# Mobile

• 100% Native API Access • High Performance• Shared C# code base

Shared C# Core

Storyboard or XIB Android XML (AXML) XAML

Windows API

Microsoft.Phone Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

iOS APIs

MapKit UIKit iBeacons CoreGraphics CoreMotion

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Android APIs

Text-to-speech ActionBar Printing Framework Renderscript NFC

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

.IPA .APK

Xamarin.Android takes advantage of Just In

Time (JIT) compilation on the Android

device.

Xamarin.iOS does full Ahead Of Time (AOT)

compilation to produce an ARM binary for Apple’s

App Store.

Native Performance

Number of APIs

Android40,000+

iOS33,000 +

Xamarin Traditional

Cons• Maximum of 80 to 90% code reuse

• XAML not support outside of Windows

Pros• UI Designers

• Easy access to every platform API

• 100% Native UI & Performance

Demo Time

Traditional Demo

Xamarin + Xamarin.Forms

iOS C# UI Windows C# UIAndroid C# UI

Shared C# Core

Traditional Xamarin

Shared C# Backend

Shared UI CodeShared UI Code (C# or XAML)

Shared C# Core

Xamarin.Forms

What’s Included

Shared C# Backend

Shared UI CodeShared UI Code (C# or XAML)

Shared C# Core

✓ 40+ Pages, layouts, and controls(Build from code behind or XAML)

✓ Two-way data binding

✓ Navigation

✓ Animation API

✓ Dependency Service

✓ Messaging Center

Xamarin.Forms

Cons• No UI Designer

• Difficult to customise

Pros• Up to 97% code reuse

• 100% Native UI & Performance

• Supports XAML across all 3 platforms

• Easy to get started with

Forms Traditional

Customisation &

Complexity of app

Ease of development

Traditional vs Forms

Pages

Stack Absolute Relative Grid ContentView ScrollView Frame

Content MasterDetail Navigation Tabbed Carousel

Layouts

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

Ecosystem

Demo Time

Forms Demo

XAML PreviewerIn preview

Native Embedding

Native Embedding

Xamarin Dev Days

mijam@microsoft.comOR

Xamarin Dev Days

OR

Thank you.

Mike James

Xamarin Program Manager -

Microsoft

Questions?

Find me online

@MikeCodesDotNET

MikeCodesDotNET

mike@xamarin.com mijam@microsoft.comOR

© 2014 Microsoft Corporation. All rights reserved.

top related