+ All Categories
Home > Software > Xamarin Forms

Xamarin Forms

Date post: 06-Apr-2017
Category:
Upload: sam-nasr
View: 129 times
Download: 2 times
Share this document with a friend
19
#XamarinDevDays
Transcript
Page 1: Xamarin Forms

#XamarinDevDays

Page 2: Xamarin Forms

Sam Nasr@SamNasrPrincipal Consultant

Cross-Platform Native User Interfaceswith Xamarin.Forms

Page 3: Xamarin Forms

Build native UIs for iOS, Android, and Windows from a single, shared C# codebase.

Meet Xamarin.Forms

Page 4: Xamarin Forms

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

Shared C# Backend

Shared UI Code

Page 5: Xamarin Forms

Xamarin Forms

• Elements: • Page• Layout• View

• XAML Support

• Device specificity

Page 6: Xamarin Forms

Layouts

Pages

Stack Absolute Relative Grid ContentView

ScrollView

Frame

Content MasterDetail

Navigation

Tabbed Carousel

Page 7: Xamarin Forms

ActivityIndicator BoxView Button DatePicker Editor

Entry Image Label ListView Map

OpenGLView Picker ProgressBar SearchBar Slider

Stepper TableView TimePicker WebView EntryCell

ImageCell SwitchCell TextCell ViewCell

Controls

Page 8: Xamarin Forms

Xamarin.Forms Ecosystem

Page 9: Xamarin Forms

Windows Xamarin.FormsStackPanel StackLayoutTextBox EntryListBox ListViewCheckBox SwitchProgressBar ActivityIndicatorGrid GridLabel LabelButton ButtonImage ImageDate/TimePicker Date/TimePicker

Control Comparison

Page 10: Xamarin Forms
Page 11: Xamarin Forms

Windows Xamarin.FormsDataContext BindingContext{Binding Property}

{Binding Property}

ItemsSource ItemsSourceItemTemplate ItemTemplateDataTemplate DataTemplate

BindingComparison

Page 12: Xamarin Forms
Page 13: Xamarin Forms

PlatformCustomization

Page 14: Xamarin Forms
Page 15: Xamarin Forms

<?xml version="1.0" encoding="UTF-8"?><TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 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 --></ContentPage></TabbedPage.Children></TabbedPage>

Native UI from shared code

Page 16: Xamarin Forms

Xamarin.Forms

Demo

Page 17: Xamarin Forms

✓ Faster Loading✓ Smaller App Size✓ See XAML errors at build time

What’s new in Xamarin.Forms 2.0 (2.3.3)

Page 18: Xamarin Forms

Xamarin.Formsis Open Source!

open.xamarin.com

Page 19: Xamarin Forms

EmulatorsAzureand more….


Recommended