Build Native Cross-Platform Mobile Applications with a Shared C# Business Logic for iOS, Android, and UWP in C# .NET with Xamarin and Visual Studio (40541)


During this course, students will learn to create cross-platform applications that share business logic while leveraging platform-specific UI and navigation features of each platform.


This course is intended for developers with at least basic C# knowledge with 6-12 months of .NET experience. Students should own and/or have used both an iOS and Android devices and be familiar with the paradigms on each platform. Some courses delivered in this agenda can count towards the Xamarin certification progress.


Before attending this course, participants should have basic knowledge of C# and six months of experience developing using .NET.

At course completion

After completing this course, participants will be able to:

  • Build cross-platform mobile applications with C# using the Xamarin tools for Visual Studio
  • Build native UI for Android and iOS applications
  • Access REST services, store data locally using SQLite, customize data presentations and choose appropriate UI and design strategies that are best suited for a particular application


 Xamarin Certified Mobile Professional
 Xamarin Certified Mobile Developer

Course outline

Module 1: Getting Started with Xamarin (XAM101)

By the end of this module, you will be able to choose the Xamarin approach that is right for you. You will also set up your development machine and run an app on Windows, the iOS simulator, and an Android emulator.

  • Lesson 1: Define the state of mobile technology today
  • Lesson 2: Discuss mobile app trends
  • Lesson 3: Identify approaches to development
  • Lesson 4: Discover the Xamarin Approach
  • Lesson 5: Setup your development environment

Module 2: Introduction to Xamarin.iOS (IOS101)

This module takes you through the entire development process. You will create a new project in Visual Studio, code the user interface and behavior, build the project, and test it on an iPhone simulator. As you build your app, you will learn several iOS design patterns such as Model-View-Controller, protocols, and delegates.

Lesson 1: Introduce the development tools
Lesson 2: (De)constructing the application
Lesson 3: Add views and behavior

Module 3: Using the Xamarin.iOS Designer (IOS102)

Use the Xamarin.iOS Storyboard Designer to design a responsive, multi-screen application.

  • Lesson 1: Create a single screen application
  • Lesson 2: Describe and use Auto Layout
  • Lesson 3: Interact with designer-defined views programmatically
  • Lesson 4: Navigate between view controllers

Module 4: TableViews in iOS (IOS110)

During this module you will learn to use the UITableView to display a collection in your Xamarin.iOS app. You will use the built-in styles to visualize your data, learn to handle item-selection events and navigate the app to a new page. Finally, you will see how to configure cell reuse to reduce memory usage and boost performance.

  • Lesson 1: Explore Table Views
  • Lesson 2: Utilize built-in cell styles
  • Lesson 3: Add selection behavior
  • Lesson 4: Implement cell reuse

Module 5: Introduction to Xamarin.Android (AND101)

During this module you will create a new project in Visual Studio, code the user interface and behavior for an Activity, build the project, and test it on an Android emulator. You'll also see how to keep your development environment up-to-date as new Android versions are released.

  • Lesson 1: Create a Xamarin.Android project
  • Lesson 2: Decompose an app into Activities
  • Lesson 3: Build an Activity's UI
  • Lesson 4: Write an Activity's behavior
  • Lesson 5: Update your Android SDK

Module 6: Activities and Intents (AND102)

In this module you will code the core patterns that make Activities work together. You will see how to start Activities, pass arguments, and retrieve results. You will also see how to launch standard Android Activities such as the camera or the web browser.


  • Lesson 1: Start an Activity in your .apk
  • Lesson 2: Finish an Activity
  • Lesson 3: Pass arguments to an Activity
  • Lesson 4: Get Activity results
  • Lesson 5: Start a system Activity

Module 7: ListViews and Adapters in Android (AND110)In this module you will code an Adapter to populate the ListView and handle item-selection events to implement a simple master-detail pattern. You will also see two advanced tasks: layout recycling with view holders to boost performance and fast scrolling with section indexers to help the user navigate large data sets.
  • Lesson 1: Handle list-item click events
  • Lesson 2: Implement a custom adapter
  • Lesson 3: Use layout recycling and the view-holder pattern

Module 8: Introduction to Cross-Platform Development (XAM110)

In this module, we will explore ways to structure your shared code using Portable Class Libraries, .NET Standard libraries, and Shared Asset Projects. We will look at the pros and cons of each approach and see how to access platform-specific features in each model.

Lesson 1: Add shared components to your application
Lesson 2: Share code using Shared Projects
Lesson 3: Share code using Portable Class Libraries
Lesson 4: Share code using .NET Standard Libraries

Module 9: Consuming REST-based Web Services (XAM150)

In this module, you will learn to consume REST-based web services with HttpClient using both the managed networking stack and the platform-specific handlers that boost performance. You will also learn some common strategies for dealing with the unique challenges that mobile devices face when communicating over the network.

  • Lesson 1: Obtain the device’s network capabilities
  • Lesson 2: Introduce REST
  • Lesson 3: Consume REST services with Xamarin

Module 10: Working with SQLite and Mobile Data (XAM160)

During this module you will learn to identify the proper location for your database file and how to insert, update, retrieve, and delete data efficiently using asynchronous I/O calls..

  • Lesson 1: Choose a data storage strategy
  • Lesson 2: Store data locally with SQLite
  • Lesson 3: Use SQLite asynchronously

Module 11: Toolbar and App Bar (AND180)

In this module you will learn to create a Toolbar, populate it from an XML menu file, and respond to item-click events. You will also learn how to integrate a Toolbar into your Activity by setting it as the Activity's app bar.

Lesson 1: Add a Toolbar to an Activity
Lesson 2: Populate Toolbar Actions from an XML menu file
Lesson 3: Use a Toolbar as an Activity's app bar
Lesson 4: Set a navigation icon on an app bar

Module 12: Android Navigation Patterns (AND205)

This module teaches you how to code three common navigation patterns: tab, gestural, and drawer. It also includes guidelines to help you decide which pattern is appropriate for your app as well as teaches you to use fragments and FrameLayout.

  • Lesson 1: Use Fragment and FrameLayout to swap views
  • Lesson 2: Implement tab navigation with TabLayout
  • Lesson 3: Implement gestural navigation with ViewPager
  • Lesson 4: Combine gestural and tab navigation
  • Lesson 5: Implement drawer navigation with DrawerLayout

Module 13: iOS Navigation (IOS205)

During this module you will implement three iOS navigation patterns: stack, tab, and master-detail. You will also learn how to identify which pattern is most appropriate for your app.

  • Lesson 1: Progress through pages of data with stack-based navigation
  • Lesson 2: Show different views of related data with tab navigation
  • Lesson 3: Display hierarchical relationships with master/detail navigation

Module 14: Advanced Cross-Platform Development (XAM300)

Use the Factory pattern, the Service Locator pattern, and Dependency Injection to access platform-specific APIs from shared code in a loosely-coupled manner.

  • Lesson 1: Locate dependencies using the Factory Pattern
  • Lesson 2: Use a Service Locator to register and retrieve dependencies
  • Lesson 3: Use an IoC container to automatically inject dependencies

Module 15: Diagnosing Memory Issues (XAM370)

This module begins by showing you how memory leaks happen in managed memory even with a sophisticated garbage collector and how to discover and fix them. It then shows you several memory issues that are specific to Xamarin.iOS and Xamarin.Android.

  • Lesson 1: Identify and fix memory leaks in your code
  • Lesson 2: Recognize and fix Xamarin.iOS specific memory problems
  • Lesson 3: Recognize and fix Xamarin.Android specific memory problems

Module 16: Preparing for Publishing (XAM220)

Prepare your app for release through the App Store, Google Play, and Windows Marketplace.

  • Lesson 1: Getting ready to publish your app
  • Lesson 2: Understanding publishing styles
  • Lesson 3: Publishing to a store


Microsoft Official Courseware

Cursus de certification



Lab 1: Cross-Platform Applications with Xamarin
  • Demonstration - Cross Platform Applications with Xamarin
  • Demonstration – View a Xamarin.Forms Project
  • Setup Validation – Validate your development environment ready

Lab 2: Create a Tip Calculator for iOS in Xamarin
  • Group Exercise: Create and run your first iOS application
  • Add a root view controller to the Tip Calculator
  • Create the UI for the Tip Calculator
  • Add logic to your Tip Calculator

Lab 3: Use the iOS Designer to create a multi-screen application
  • Create the UI for a single view application
  • Add constraints to the fireworks app
  • Add a second screen to your app and code a button to navigate to it
  • Add segues to define the navigation

Lab 4: Use a Table View, populate it with data and perform basic customizations
  • Add a Table View to an application
  • Populate a Table View
  • Use built-in cell styles
  • Use the accessory styles and row selection
  • Implement cell reuse

Lab 5: Create a Xamarin.Android application with Views, layouts and behavior
  • Create a Xamarin.Android Project
  • Add views to a layout file manually and with the Designer
  • Implement an Activity’s behavior and run your app in an emulator
  • Update the Tools and SDK Platform

Lab 6: Create an app with collaborating Activities
  • Explore the completed lab exercise
  • Start an Activity in your .spk
  • Programmatically end an Activity
  • Pass arguments to an Activity
  • Get Activity Results
  • Launch a system Activity

Lab 7: Use an Adapter to populate a ListView and then customize it to boost efficiency
  • Populate a ListView using an ArrayAdapter
  • Handle list-item click events
  • Implement a custom adapter
  • Use layout recycling and the view-holder pattern
  • Enable fast scrolling and a code a section indexer

Lab 8: Share code across Windows, Android and iOS
  • Share code across Windows, Android and iOS
  • Display content from a shared JSON file onto Windows, Android and iOS
  • Use a portable library to display content on Windows, Android and iOS
  • Demonstration: Create a .NET Standard library and use .NET Standard APIs

Lab 9: Use, consume and communicate with REST services
  • Determine the network connectivity
  • Communicate with a Book Service
  • Demonstration: Leverage the native platform network stack

Lab 10: Utilize SQLite to store and access data
  • Determine your database file path
  • Add SQLite.Net to your projects
  • Access a SQLite database with SQLite.Net
  • Access a SQLite database using asynchronous methods

Lab 11: Create and populate a Toolbar and set it as the Activity's AppBar
  • Add a Toolbar to an Activity
  • Populate Toolbar Actions from an XML menu file
  • Add a checkable submenu
  • Use a Toolbar as an Activity’s app bar
  • Set a navigation icon on an app bar

Lab 12: Build three common navigation patterns in Xamarin.Android
  • Use Fragment and FrameLayout to swap views
  • Implement tab navigation with TabLayout
  • Implement gestural navigation with ViewPager
  • Combine gestural and tab navigation
  • Implement drawer navigation with DrawerLayout

Lab 13: Implement Stack, Tab and Master/Detail navigation
  • Implement Stack Navigation
  • Implement Tab Navigation
  • Implement Master/Detail

Lab 14: Define, locate and use dependencies
  • Use the Factory Pattern to access a dependency from shared code
  • Group Exercise: Build a Service Locator
  • Use Dependency Injection

Lab 15:Find and correct memory leaks in your Xamarin applications
  • Using the Xamarin Profiler to monitor allocations
  • Finding and fixing delegate reference leaks
  • Identifying and breaking strong reference cycles
  • Watch out for peer promotions
  • Show ListView memory and performance with a custom adapter

Lab 16: Preparing for Publishing (XAM220)
  • Getting ready to publish your app
  • Understanding publishing styles
  • Publishing to a store

Formations complémentaires

MS-20483: Programming C#
MS-40539: Build iOS Apps with C# and .NET using the Xamarin Tools for Visual Studio
MS-40540: Build Android Apps with C# and .NET using the Xamarin Tools for Visual Studio
MS-40542: Build Native Cross-Platform Mobile Applications with a Shared UI for iOS, Android, and UWP in C# .NET with Xamarin.Forms