Download presentation
Presentation is loading. Please wait.
Published byAllyson Lewis Modified over 6 years ago
1
Microsoft Build 2016 6/23/ :01 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
iOS, Android, and Windows apps in C# and XAML with Xamarin.Forms
James Montemagno Xamarin
3
Xamarin’s Unique Approach
Build 2015 6/23/ :01 AM Xamarin’s Unique Approach Windows-specific C# Android-specific C# iOS-specific C# C# Shared Logic Shared C# codebase • 100% native API access • High performance © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
Windows APIs Microsoft.Phone Windows.Storage Microsoft.Devices
Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel
5
iOS – 100% API Coverage MapKit UIKit iBeacon CoreGraphics CoreMotion
Build 2015 6/23/ :01 AM iOS – 100% API Coverage MapKit UIKit iBeacon CoreGraphics CoreMotion System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
6
Android – 100% API Coverage
Build 2015 6/23/ :01 AM Android – 100% API Coverage Text-to-speech ActionBar Printing Framework Renderscript NFC System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7
Native Performance AOT .APP Xamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary for Apple’s App Store. Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.
8
Visual Studio Integration
9
6/23/2018 Anything you can do in Objective-C, Swift, or Java can be done in C# and Visual Studio with Xamarin. © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
Visual Studio Integration
Xamarin.com/Download
11
Meet Xamarin.Forms Build native UIs for iOS, Android, and Windows
from a single, shared C# codebase.
12
Xamarin + Xamarin.Forms
Microsoft Build 2016 6/23/ :01 AM Xamarin + Xamarin.Forms Windows-specific C# Android-specific C# iOS-specific C# C# Shared Logic Xamarin.Forms C# Shared Logic Traditional Xamarin Approach With Xamarin.Forms: More code-sharing, all native © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
13
What’s included Xamarin.Forms ✓ 40+ Pages, layouts, and controls
(Build from code behind or XAML) ✓ Two-way data binding ✓ Navigation ✓ Animation API ✓ Dependency Service ✓ Messaging Center Xamarin.Forms C# Shared Logic
14
Layouts Pages Content MasterDetail Navigation Tabbed Carousel Stack
Absolute Relative Grid ContentView ScrollView Frame Layouts
15
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
16
Xamarin.Forms Ecosystem
17
Native UI from shared code
<?xml version="1.0" encoding="UTF-8"?> <TabbedPage xmlns=" xmlns:x=" x:Class="MyApp.MainPage"> <TabbedPage.Children> <ContentPage Title="Profile" Icon="Profile.png"> <StackLayout Spacing="20" Padding="20" VerticalOptions="Center"> <Entry Placeholder="Username" Text="{Binding Username}"/> <Entry Placeholder="Password" Text="{Binding Password}" IsPassword="true"/> <Button Text="Login" TextColor="White" BackgroundColor="#77D065" Command="{Binding LoginCommand}"/> </StackLayout> </ContentPage> <ContentPage Title="Settings" Icon="Settings.png"> <!-- Settings --> </TabbedPage.Children>
18
Platform Customization
19
Let’s take a look
20
Xamarin.Forms 2.0 Xamarin.Forms ✓ Windows 10 UWP ✓ Control Templates
✓ Data Template Selectors ✓ More Gestures (Pinch & Pan) ✓ XAML Compilation ✓ Effects ✓ Android Material Design Xamarin.Forms C# Shared Logic
21
Free Xamarin.Forms Book
PDF, ePub, Kindle, iBooks, Google Play Books & More By Charles Petzold
22
Get Started Today Xamarin.com
23
Resources Code: Get Started: Follow me:
Get Started: Follow me: GitHub: JamesMontemagno
24
6/23/ :01 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.