Aspnetcore: Xamarin Razor Component Application

Created on 22 Jun 2019  路  6Comments  路  Source: dotnet/aspnetcore

It would be nice to run Razor Component Application as Xamarin Application with ability to use Xamarin API
Xamarin has WebView and it is possible to run Razor UI in Xamarin

Similar issue was create https://github.com/xamarin/Xamarin.Forms/issues/5069

Components Big Rock External area-blazor enhancement

Most helpful comment

Tune in this Tuesday to see some exciting demos!

https://focus.dotnetconf.net/Agenda

image

All 6 comments

If anyone ends up looking into this, I'd like to be involved in the discussion.

It's a cool idea! So far, it's not something we've specifically got into any detail thinking about because for the time being, we need to focus entirely on regular web browser scenarios in order to deliver that on time for the 3.0 release.

Technically it should be possible to use the same technique we've used for Electron to host a Blazor UI inside a Xamarin app, and have the .NET code run "natively" (per whatever that means for Xamarin, as opposed to on WebAssembly) so you can access all the native APIs directly. However there are probably various extra complications around hooking into the Xamarin build process to make it work with their AOT system, which I've no idea about right now.

I got some not yet completed idea. Maybe someone will complete it:
-Xamarin to provide a native container (not web view), and Blazor to drop his application and support DLL's, and then render them inside the device as a Forms application (kind of)..
( maybe this will lead to somehow merging XAML with RAZOR - I am not yet sure).
So we will have a container with the basic .NET objects which practically never changing, and the application which is all-the-time new one, rendering on the device, excluding the burden of the browser, using the maximum performance without care of the browser misleads and flaws in the ideology of an application..
A hybrid Web-Desktop/Mobile application. Having the best from the native and web words.
( access to the device properties and peripherals and still web app)

Moving into the 5.0.0-preview1 to see how will we be tracking the investigation of this in 5.0 timeframe.

Tune in this Tuesday to see some exciting demos!

https://focus.dotnetconf.net/Agenda

image

Closing as this is tracked in an external repo: https://github.com/xamarin/mobileblazorbindings

Was this page helpful?
0 / 5 - 0 ratings