Xamarin interview questions and answers, including MAUI migration

Xamarin interview questions today are mostly about apps that already exist: how Xamarin.Forms and native Xamarin.iOS and Xamarin.Android share C# code, how binding, renderers and navigation work, and how you would move the app to .NET MAUI now that Microsoft has ended support for Xamarin. Expect fundamentals, a bug in a list or a platform renderer, and a migration scenario. Strong answers show you know both the Xamarin way and its MAUI replacement.

By Published 7 min read

Why Xamarin interviews look different now

Xamarin let teams write iOS and Android apps in C#, either with Xamarin.Forms (one shared UI in XAML) or with Xamarin.iOS and Xamarin.Android (native UI per platform, shared business logic). Microsoft has since ended support for the Xamarin SDKs, and its successors are .NET MAUI for the shared UI and .NET for iOS and .NET for Android for the native route. Store rules about new SDK targets keep moving, so unsupported Xamarin apps eventually need that move.

So most roles that still say Xamarin are one of three things: keep a production app alive, migrate it to MAUI, or both. Interviewers want proof that you understand the old app well enough not to break it, and that you can plan the move without stopping feature work. For the language itself, see C# interview questions; for the desktop cousin of this XAML stack, see WPF interview questions.

  1. ScreenYour Xamarin history: Forms or native, which app types, and whether you have shipped to both stores.
  2. Technical talkBinding, lists, renderers, navigation and platform code, often with a short code reading.
  3. Practical or debugging taskFix a list that stutters, a binding that does not update, or a crash that only happens on one platform.
  4. Migration conversationHow you would get the app onto .NET MAUI: order of work, risks and how you would test it.

Xamarin fundamentals questions

Core questions asked in most Xamarin screens
QuestionWhat it testsWhat a strong answer shows
Xamarin.Forms versus Xamarin.iOS and Xamarin.Android?ArchitectureForms shares UI and logic; controls map to native views at run time. Native Xamarin shares only non-UI code and builds each screen with the platform's own UI, which gives more control and more work.
How is code shared between platforms?Project structureUsually a .NET Standard library holding view models, services and models, referenced by thin platform heads. Older apps may use Shared Projects with conditional compilation.
What is a BindableProperty?Property systemThe Forms version of a dependency property: it supports binding, styles, default values and change callbacks. Custom controls expose their settable values this way.
How does data binding work in Forms?BindingA view property binds to a source path, usually on the BindingContext, which is inherited by children. The source raises PropertyChanged so the view refreshes.
What does the built-in Command class give you?CommandsAn ICommand with an execute delegate, an optional can-execute delegate and ChangeCanExecute to refresh button state.
What is Shell?NavigationAn app container with flyout and tab structure plus URI-based routing, so you navigate with GoToAsync("orders/details?id=42") instead of pushing pages by hand.
NavigationPage push versus modal push?NavigationPush adds to a back stack with a navigation bar. A modal covers the current flow and must be dismissed, which suits a login or a one-off form.
What is Xamarin.Essentials?Device APIsA cross-platform library for things like connectivity, preferences, secure storage, geolocation and permissions, so shared code does not need platform code for common needs. Its APIs moved into MAUI.
How do you run code on the UI thread?ThreadingMainThread.BeginInvokeOnMainThread from Essentials, or the older Device.BeginInvokeOnMainThread. Touching views from a background thread crashes or behaves unpredictably.
What app lifecycle events does Forms expose?LifecycleOnStart, OnSleep and OnResume on the Application class, mapped from the platform lifecycles. Save state in OnSleep because the OS may kill the app afterward.
How do you write platform-specific values in XAML?Platform differencesOnPlatform for different values per platform, and OnIdiom for phone versus tablet. Bigger differences go in platform code.
Core questions asked in most Xamarin screens. Scroll sideways on a small screen.

Intermediate: lists, renderers and platform code

List screens are where Xamarin.Forms apps most often feel slow, so interviewers love them. A classic task is an endless product feed. The view model below pages results in and refuses to start a second load while one is running, because the list's threshold event can fire several times during one fast scroll.

using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;

public interface IProductApi
{
    Task<IList<string>> GetPageAsync(int page, int size);
}

public sealed class FeedViewModel
{
    private readonly IProductApi _api;
    private int _nextPage;
    private bool _isLoading;
    private bool _hasMore = true;

    public ObservableCollection<string> Items { get; private set; }

    public FeedViewModel(IProductApi api)
    {
        _api = api;
        Items = new ObservableCollection<string>();
    }

    // Bound to RemainingItemsThreshold on a CollectionView, so it can fire
    // again while a page is still loading. The flag stops duplicate pages.
    public async Task LoadMoreAsync()
    {
        if (_isLoading || !_hasMore) return;
        _isLoading = true;
        try
        {
            var page = await _api.GetPageAsync(_nextPage, 3);
            foreach (var item in page) Items.Add(item);
            _nextPage++;
            _hasMore = page.Count == 3;
        }
        finally
        {
            _isLoading = false;
        }
    }
}

// With a fake API that holds 7 products: two LoadMoreAsync calls started
// together add 3 items, not 6. Three more calls add the last 4 items and
// then stop, because the final page came back short.
Incremental loading with a guard against duplicate requests. The API is behind an interface so tests can swap it.
<CollectionView ItemsSource="{Binding Items}"
                RemainingItemsThreshold="5"
                RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}">
  <CollectionView.ItemTemplate>
    <DataTemplate>
      <Label Text="{Binding .}" Padding="16,12" />
    </DataTemplate>
  </CollectionView.ItemTemplate>
</CollectionView>
The matching Xamarin.Forms list (not executed). LoadMoreCommand is a Command that calls LoadMoreAsync.
  • ListView or CollectionView? CollectionView is the newer control: no ViewCell wrapper, built-in layouts for grids and horizontal lists, selection modes and threshold-based loading. ListView still appears in older apps, where its caching strategy (RecycleElement) matters a lot for scrolling.
  • What are compiled bindings and why use them? With x:DataType set, bindings are resolved when XAML is compiled instead of by reflection at run time. They are faster and a wrong path becomes a build error.
  • What does XAML compilation (XamlC) do? It compiles XAML into intermediate code at build time, which catches XAML errors earlier and speeds up page creation.
  • Custom renderer or effect? A renderer replaces how a Forms control maps to a native view, for full control. An effect tweaks the existing native view (a border, a shadow) and is lighter. In MAUI both give way to handlers and property mappers.
  • What is DependencyService? A simple service locator: shared code asks for an interface and each platform registers its implementation. Many teams replace it with a real dependency injection container, which MAUI builds in.
  • What replaced MessagingCenter? Recent MAUI versions mark it obsolete; a common replacement is the WeakReferenceMessenger from CommunityToolkit.Mvvm, which avoids leaks from forgotten subscriptions.
  • How do you request a runtime permission? Use the Essentials Permissions API from shared code, declare the permission in the Android manifest and the iOS Info.plist usage strings, and handle denial gracefully.
  • How do you store a token securely? SecureStorage from Essentials, backed by the Keychain on iOS and the Keystore on Android. Preferences is not for secrets.
  • Why does an image-heavy screen run out of memory on Android? Large bitmaps decoded at full size and never released. Downsample to the display size, reuse cells and dispose of native objects you created.
  • How do you handle a feature that only one platform supports? Hide it behind an interface in shared code with a no-op or fallback implementation on the other platform, and make the UI check whether it is available.

Senior and migration questions

Scenario questions for senior Xamarin and MAUI candidates
QuestionWhat it testsWhat a strong answer shows
The app works in debug but crashes in a release build on iOS. Where do you look?Linker and AOTRelease builds link away unused code and iOS requires ahead-of-time compilation. Reflection-based code (serializers, DI) can lose types it needs; preserve them with attributes or linker configuration, and avoid code that needs a JIT.
Why can an Android Xamarin app leak memory even with a garbage collector?Runtime bridgeManaged peers wrap Java objects, and the two collectors coordinate across a bridge. Event handlers on long-lived objects, undisposed native objects and large peer graphs keep both sides alive.
Startup takes too long. What would you measure and change?PerformanceMeasure time to first screen on a real low-end device. Trim work in the Application constructor, lazy-load services, compile XAML and bindings, shrink images, and consider AOT options on Android.
How would you plan a Xamarin.Forms to .NET MAUI migration?Migration planInventory third-party packages and renderers first, move the shared library to current .NET, create the single MAUI project, port renderers to handlers, then retest platform features screen by screen behind a release branch.
Which parts of a Forms app usually port easily, and which hurt?Migration judgmentView models, services and most XAML port with namespace changes. Custom renderers, abandoned NuGet packages and code tied to old platform APIs take the real time.
How do you keep shipping features during the migration?DeliveryKeep shared logic in one library both apps build, freeze risky UI changes, migrate in a parallel project and switch store builds only after test parity.
What does a handler in MAUI do that a renderer did not?MAUI architectureA handler maps a cross-platform control to its native view through a property mapper, so you can change one property's native behavior without subclassing the whole renderer.
How do you test a Xamarin app?QualityUnit test view models and services in plain .NET; run UI automation on real devices or emulators for key flows; keep a manual checklist for platform-specific features like camera and push.
A third-party SDK you depend on has no MAUI-compatible version. Options?Risk handlingLook for a maintained fork, bind the native SDK yourself, replace the feature with a platform API, or isolate it and ask the business whether it is still needed.
Scenario questions for senior Xamarin and MAUI candidates. Scroll sideways on a small screen.

A worked migration answer

Fictional example

Senior candidate: moving a field-service app off Xamarin.Forms
Interviewer
Walk me through a Xamarin migration you led or would lead.
Candidate
Our field-service app had about forty screens in Xamarin.Forms, six custom renderers and a signature-capture package that was no longer maintained. I started with an inventory: every package, every renderer and every platform API call, each marked as easy, rewrite or replace.
Candidate
We moved the shared library to current .NET first, because both the old and new app could build against it. Then I created the MAUI project, ported view models with almost no changes and rewrote the renderers as handler mappings. The signature package became a small native control we owned.
Candidate
Testers ran the old and new builds side by side against a checklist of every screen on both platforms. We released the MAUI build to a pilot group first and kept the Xamarin build ready to roll back. The main lesson was to start with the package inventory, because that is where the surprises were.

Six days to get ready

  1. Write down the Xamarin app you know best: Forms or native, packages, renderers, platform features and how it was released.
  2. Rebuild the feed above in a small MAUI app with compiled bindings, then note every change you needed compared with Forms.
  3. Port one custom renderer from an old sample to a MAUI handler and explain the difference in two sentences.
  4. Practice release-only bugs: explain the linker, iOS AOT and how you would preserve a type used by reflection.
  5. Prepare a migration plan for a fictional app on one page: inventory, order of work, test approach and rollback.
  6. Answer the senior questions out loud and time yourself.

When you rehearse the migration story, Natively, an AI interview assistant for Mac and Windows, keeps a live transcript of your mock interview, so you can check that you named the package inventory and the rollback plan rather than only the happy path. In practice it can also read a XAML snippet or a release-build crash log from a screenshot and suggest causes to check, and help you work through the C# exercise. Adding your résumé and a job description, available on Pro or the free trial, lets its suggestions draw on the mobile apps you have actually shipped, and the session notes stay on hand for review.

Questions people ask

What Xamarin questions are asked in interviews?

Xamarin.Forms versus native Xamarin, code sharing, bindable properties and MVVM, Shell navigation, CollectionView, custom renderers, DependencyService and Essentials. Senior rounds add release-only crashes, memory and a plan to migrate to .NET MAUI.

Is Xamarin still supported?

No. Microsoft has ended support for the Xamarin SDKs, and the successors are .NET MAUI and .NET for iOS and Android. Check Microsoft's support policy page for the exact date.

What is the difference between Xamarin.Forms and .NET MAUI?

MAUI is the successor: one project for all platforms, handlers instead of renderers, built-in dependency injection and current .NET. Most view models and XAML carry over with namespace changes.

How do I prepare for a Xamarin to MAUI migration interview?

Port a small Forms sample yourself, convert one renderer to a handler, and prepare a one-page plan covering the package inventory, order of work, testing and rollback.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP