Uno Platform for Web / WebAssembly
For supporting building Web Applications, the Uno Platform relies on WebAssembly. In addition to producing a performant Web Application your code, both UI layer and business logic will also work on iOS, Android and Windows.
How It Works under the hood
Web Apps built with Uno Platform get the benefit of .net-industry-first AOT (Ahead-of-Time) compilation.
Your app is written in C# and XAML markup. At compile time, Uno Platform parses XAML files into C# code. Then by using WebAssembly / Mono it creates the information needed to build the app’s visual tree. It implements a complete DataBinding engine, optimized for static type-checking where possible. Lastly it implements the views and controls in the WinUI / UWP framework, producing HTML / CSS needed for modern browsers to display.
Uno Platform Playground for WebAssembly
Seeing is believing. Run XAML samples from XAML Control gallery or some of your own code. You can even bind two way to Data Context.
Note the underlying platform (Mono for WebAssembly) is in preview mode. The final AOT’d product performance is 20x faster.
Windows Calculator Running in Web Browser
By using Uno Platform we ported the open-sourced Windows Calculator (yes, the one that runs on your Windows machine right now) and ported it to Web using WebAssembly. Check it out below right from your browser. And before you ask, yes we have it running natively on iOS and Android ( Apple App Store, Android Play Store)