9. Build native UIs for iOS, Android, and Windows
from a single, shared C# codebase.
Meet Xamarin.Forms
10. Xamarin + Xamarin.Forms
Traditional Xamarin approach With Xamarin.Forms:
More code-sharing, all native
iOS C# UI Windows C# UIAndroid C# UI
Shared C# Logic Shared C# Logic
Xamarin.Forms
11. 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# Logic
Shared UI Code
19. XAML Compilation Usage
At assembly level:
[XamlCompilation(XamlCompilationOptions.Compile)]
[XamlCompilation(XamlCompilationOptions.Skip)]
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
At class level:
30. Effects
✓ Custom renderer “lite”
✓ Change properties on the native control
✓ Optional
✓ “stringly-typed”
X No methods or events
X No replacing the control
57. Thank You!
Matthew Soucoup
Sr. Cloud Developer Advocate,
Microsoft
@codemillmatt codemilltech.com matt.soucoup@microsoft.com
Notas del editor
Including the Free Community Edition
Inside of a page are layouts
A lot of options from something simple like a stack panel to complex and powerful grids
You have more than 40 controls, layouts, and pages to mix and match from.
These are all of the controls you have out of the box, you can of course create your own.
What is unique is you get the native control and have access to it.
Consider an Entry Field
On iOS it is mapped to UITextField
Android it is EditText
Windows Phoen it is a TextBox
A unique aspect of Xamarin.Forms is an abstraction over the user interface, but what about the platform specific functionality that makes these devices so special?
That is where plugins for Xamarin come in.
A unique aspect of Xamarin.Forms is an abstraction over the user interface, but what about the platform specific functionality that makes these devices so special?
That is where plugins for Xamarin come in.
We have also added a plethora of amazing new features!
Ask audience if they know what flexbox is
Ask audience if they LIKE flexbox
At the end of talking through this, I’ll do a quick intro of Jason and call him up to demo.
Tizen: Running on 50+ Million Samsung Devices
Available as of build is a brand new pre-release of 2.3.5 with great new features and performance enhancements.
It also features our first preview of macOS!
Xamarin.Forms embedding is the future!
Get started today with free 30 day trial of Xamarin at xamarin.com
Take free self-guided courses that cover the core Xamarin concepts and count towards certification.