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

Using Prism with Xamarin Forms

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Using Prism with Xamarin Forms

Using Prism with Xamarin Forms talk given at 2018 Orlando Code Camp

Avatar for Ken Tucker

Ken Tucker

March 17, 2018

Other Decks in Programming

Transcript

  1. What we will cover What is Xamarin Forms Code sharing

    in Xamarin forms Standard Libraries What is Prism Create a prism App
  2. What is Xamarin Forms Xamarin forms is a framework which

    allows you to create cross platform applications using c# or f# Allows you to write code once run it on iOS, Android, UWP and Mac Coming soon WPF and Linux (via Gtk#)
  3. Shared Libraries Both iOS and Android app share one class

    library Use conditional compilation to support platform specific features
  4. Portable Class libraries First attempt at making a cross platform

    dll Allowed you to use .net functions that exist in all the supported platforms Need to use dependency Injection for Platform specific features Needed to use Dependency Injection for saving to file system
  5. .net standard Replace Portable class libraries Use contract to define

    what is supported in the .net standard version Support much more of .net framework than PCL Can do file access Use dependency injection for platform specific features
  6. What is Prism? Prism was the code name for Microsoft

    Patterns and Practice Composite Application Blocks It is an MVVM framework Includes Dependency Injection container, Commanding, and EventToCommand Microsoft Turned over the project to open source developers in 2016 Prism currently uses .net Standard for code sharing
  7. Convert Json to class Use QuickType.io to convert json to

    c# classes Visual Studio 2017 addin for this
  8. System.IO System.IO can be used in .net 2 standard libraries

    Can cache web service data with out using dependency injection