Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Tour of Xamarin.Forms

patridge
February 17, 2016

A Tour of Xamarin.Forms

Bring your C# skills to native app development using Xamarin.Forms. You'll be creating iOS and Android apps simultaneously with almost complete code-share between them, even the UI. (Demo code repo: https://github.com/patridge/demos-xamarin.forms-tour)

patridge

February 17, 2016
Tweet

More Decks by patridge

Other Decks in Programming

Transcript

  1. A Tour of Xamarin.Forms Write-once, run a bunch of places,

    natively. @patridgedev patridgedev.com
  2. What is Xamarin? Build native apps for multiple platforms via

    C# code. • iOS: AOT compiler -> ARM assembly • Android: JIT compilation + runtime optimizations • Access to 100% of Android or iOS APIs w/ C# flavor
  3. What is Xamarin.Forms? • Cross-platform apps from a single code-base

    • Shared UI, via XAML or code, renders to native controls on each platform • Shared code via Shared Project or Portable Class Library (PCL)
  4. Should I Use Xamarin.Forms? "Xamarin.Forms is best for:"* • Apps

    that require little platform-specific functionality • Apps where code sharing is more important than custom UI • Developers comfortable with XAML Me • Trade-off: per-platform UI/code vs. per-platform tweaks to shared UI • Great for just about any new project *per Xamarin: https://xamarin. com/forms
  5. When Platforms Diverge… • OnPlatform (easy) • Custom Renderer (more

    involved) • Plug-ins (pre-packaged awesomeness)
  6. What Else Can Xamarin.Forms Do? • Styling (by control, by

    page, by app) • Animation (universal API across platforms) • Service Locator (for your various dependency needs)
  7. Other Resources • Xamarin.Forms views reference (http://pdev.co/xam-forms-views) • Xamarin Plug-ins

    (http://pdev.co/xam-forms-plugins) • Tonight's demo code repo (http://pdev.co/xam-forms-demo-repo) @patridgedev patridgedev.com