Hosting a Blazor App in WinUI 3 with WebView2 and call a Blazor Component Method from WinUI
示例代码在https://github.com/thomasclaudiushuber/WinUI3-WebView2-Hosting-BlazorApp。 展示了C#与JS之间的interop,以及WebView2与其宿主之间的通信,主要采用的是WebView2的ExecuteScriptAsync方法。
但是WebView对Blazor是从http://localhost/
加载的。
Calling WinUI from Blazor App Hosted in WebView2
展示了如何使用WebView2的WebMessageReceived从JS接受消息。
WebAssembly and Blazor: A Decades Old Problem Solved
Silverlight败给了HTML5。
asm.js以及WebAssembly。
总之是一些纵览。
An introduction to Blazor WebAssembly
对Blazor文档的摘述。
Blazor vs React
列举了一些常用任务的实现,值得一看。
Fluent Design with Blazor; What are your options?
在Blazor中使用FluentUI的三种办法
- 直接使用React组件
- 使用WebComponent
- 使用https://github.com/BlazorFluentUI/BlazorFluentUI
Blazor Finally Complete as WebAssembly Joins Server-Side Component
感觉https://github.com/dotnet/MobileBlazorBindings和https://platform.uno/有竞争之势。
其他https://github.com/praeclarum/Ooui。
The Future of Client-Side Blazor: PWAs, Desktop/Mobile, Native (and even Flutter?)
或许可以对标Flutter,一个demo。
列举了客户端的几种场景:
- Blazor PWA
- Blazor Hybrid
- Blazor Desktop
- Blazor Native
2020-05-19 Blazor WebAssembly 3.2.0 now available
宣告Blazor WebAssembly。
2021-02-17 First .NET 6 Preview Introduces Blazor Desktop
提到Blazor Desktop。
2021-05-26 ASP.NET Gets Blazor WebAssembly AoT, Hot Reload, .NET MAUI Blazor Apps
.NET 6 Preview 4引入了Blazor WebAssembly的AoT支持。
2021-05-25 ASP.NET Core updates in .NET 6 Preview 4
宣告.NET 6 Preview 4。
WebAssembly Beyond the Browser: Running WASM in .NET Core Applications With WASI & Wasmtime
2020-02-06 What’s behind the hype about Blazor?
同样提到:
- Blazor Server (Remote Renderer)
- Blazor WebAssembly (WebAssembly Renderer)
- Blazor Electron (Electron Renderer)
- Mobile Blazor Bindings (MobileBlazorBindings Renderer)
Blazor Mobile, Uno Platform, and WebAssembly – piling up the tech
Announcing Experimental Mobile Blazor Bindings引入Blazor的语法开开发Native应用。
而Uno可以将Xamarin.Forms渲染成WebAssembly?
How to activate hot reload on save with Blazor WASM?
dotnet watch -p C:\MyApp\BlazorApp1\ run
How to write a comment in a Razor view?
.razor
@* Comment goes here *@
.aspx
<%-- Comment goes here --%>
其他
- https://github.com/bytecodealliance/wasmtime
- Standalone JIT-style runtime for WebAssembly, using Cranelift
- https://github.com/AdrienTorris/awesome-blazor
- https://blazor-university.com/
- Learn Studio Session: Build a WebAssembly app with Blazor & VS Code | COM141
(本篇完)