What is MobileBlazorBinding, and what it isn’t?

Blazor is a framework for building interactive client-side web UI with .NET and, Xamarin is an app platform for building Android and iOS apps with .NET and C#.

You might think, with Razor, HTML and, C# you will be able to build native mobile applications, but the truth is: no you can’t.

Mobile Blazor bindings are another way to create Xamarin Forms UI with Razor instead of XAML syntax. They created this experimental project for developers with web-development background, and people who are not familiar with XAML.

Does this mean you can have shared-UI with Blazor and Xamarin? No!

When you are creating an application with BlazorMobileBindings you are actually using native UI components in your UI that are not HTML!

Here is a simple example of Blazor Mobile Bindings:

And this example is for Blazor Web Assembly:

If you just compare these two source codes, they are somehow identical. The only difference is one is using HTML and the other is using Xamarin UI components.