xamarin forms

Post on 22-Feb-2017

320 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Xamarin FormsOrdertracker

Peter MajorDec 11, 2014

.NETWPFAngularJSXamarin - SeptXamarin Forms - Nov

Background

Customers:Where is my order?

Restaurants:Where are my drivers?

In pilot at 11 restaurants - iOS only

Ordertracker | Driver App

UX

Demo

- Xamarin code reuse

- Two UI layouts

- New developers learn two technologies

Without Forms

- One page for iOS and Android

- Native look and feel

With Forms

Forms

Entry

EntryRenderer EntryRenderer

UITextField EditText

iOS Android

Same vs Different

- XAML or code

- WPF? Forms will be familiar.

- By feature, not by platform

With Forms

- Pages

- Layouts

- Viewshttp://developer.xamarin.com/guides/cross-platform/xamarin-forms/controls/

Xamarin Forms

- Subclass the XF “view”Button demo

- Custom rendererEntry demo

Customization

- Must write native UIs

- MvvmCross with XF? Probably no.duplication

bindingnavigation

https://github.com/XLabs/Xamarin-Forms-Labs

MvvmCross

- Used internally by XF

- Static singleton

- Strange generic syntax

MessagingCenter

- Service Locator pattern

- Static singleton (again)

- No constructor injection

DependencyService

- App-wide resource dictionaries- Behaviors- Triggers- Dynamic resources- Styles

1.3 Preview

- New or Existing product?

- New or Existing team?

Should I use XF?

- One UI layout- Very customizable- Initial customization- Develop by feature- Very active development

Good

- Renderers have “internal” code- Bugs, fix with renderers- No app-wide shared resources (in stable)- No XAML designer

Bad

top related