Xamarin Forms
OrdertrackerPeter Major
Dec 11, 2014
.NET
WPF
AngularJS
Xamarin - Sept
Xamarin 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
- Views
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/controls/
Xamarin Forms
- Subclass the XF “view”
Button demo
- Custom renderer
Entry demo
Customization
- Must write native UIs
- MvvmCross with XF? Probably no.
duplication
binding
navigation
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

Meetup 2014-12-11