Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by using Microsoft.JSInterop
Local GenAI Processing: Implementing WebLLM with Blazor WebAssembly
Generative AI (GenAI) and Large Language Models (LLMs) have been the hottest topics of 2024. GenAI tools use LLMs to generate content using natural language processing. Using these tools is a seamless and easy for the end user, and lead to an overall better user experience for completing tasks. However, running GenAI involves significant computational resources, security concerns, and other trade-off.
maui BlazorWebView+本地html (vue、uniapp等都可以) 接入支付宝sdk 进行支付宝支付 开发 Android app
首先添加支付宝sdk的绑定库 nuget 包:Chi.MauiBinding.Android.AliPay 项目地址:https://github.com/realZhangChi/MauiBinding 新建maui Blazor应用,在根目录创建一个静态类PublicMethods.cs (类名位置都可以自定义,这个静态类主要给html js 调用使用的,js调用服务端方法 从 ASP.NET Core Blazor 中的 JavaScript 函数调用 .NET 方法 | Microsoft Learn) 注意其中的 #if ANDROID IOS 指在不同的平台下执行操作 using Microsoft.JSInterop; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Text.Encodings.Web; using System.Text.Json; using...
maui BlazorWebView+本地html (vue、uniapp等都可以) 接入微信sdk 开发 Android app
首先添加微信sdk的绑定库 nuget 包:Chi.MauiBinding.Android.WeChat 项目地址:https://github.com/realZhangChi/MauiBinding 在项目目录 Platforms---Android 下建立文件夹wxapi,在wxapi文件夹下添加WXEntryActivity.cs,用来接收微信sdk的回调信息(Android接入指南 | 微信开放文档 (qq.com)),建好后修改代码为: namespace MauiApp7.Platforms.Android.wxapi { //将下面的中文"包名"替换成你实际的包名 [Activity(Name = "包名.WXEntryActivity", Exported = true, TaskAffinity = "包名", LaunchMode = LaunchMode.SingleTask, Label = "微信回调")] //特别注意WXEntryActivity 是集成的Activity 不是MauiAppCompatActivity public class...
不用Blazor WebAssembly,开发在浏览器端编译和运行C#代码的网站
本文中,我将会为大家分享一个如何用.NET技术开发“在浏览器端编译和运行C#代码的工具”,核心的技术就是用C#编写不依赖于Blazor框架的WebAssembly以及Roslyn技术。 一、 为什么要开发这样的工具? 对于编程初学者来讲,开发环境的安装配置是一个令人头疼的事情,如果能让初学者不用做任何的安装配置,直接打开浏览器就能编写、运行代码,那么这将会大大降低编程初学者的学习门槛。 目前已经有一些可以在线编写、运行C#代码的网站了,这些网站的实现思路有如下两种: 思路1:把代码从前端提交到在后端服务器上,然后在服务器上进行编译、运行,然后把运行结果再显示到前端。这样做的缺点是无法完成复杂的输入输出、界面交互等。 思路2:用Mono技术编写WebAssembly。这样做的缺点是对于C#语法的跟进不及时,一些新的C#语法不被支持。 因此,开发一个能在浏览器端编译运行C#代码,并且支持最新C#语法的工具就很重要了。要开发这样的工具,WebAssembly是一个绕不过去的技术。 二、 什么是WebAssembly?...
Blazor Implementations Across Web & Native
Blazor can drive UI/UX across web and native platforms, but implementations can vary. Blazor is eating the world. .NET developers have understandably been excited about Blazor—a modern web framework allowing for C# code front and back. Blazor can run server-side or entirely client-side with WebAssembly, and the Blazor component/rendering model inspires confidence with stability and extensibility.
Call JavaScript functions from .NET methods in ASP.NET Core Blazor
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 10/21/2022 112 minutes to read In this article This article explains how to invoke JavaScript (JS) functions from .NET. For information on how to call .NET methods from JS, see Call .NET methods from JavaScript functions in ASP.NET Core Blazor. IJSRuntime is registered by the Blazor framework.
ASP.NET Core Blazor globalization and localization
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 09/30/2022 68 minutes to read In this article This article explains how to render globalized and localized content to users in different cultures and languages. For globalization, Blazor provides number and date formatting. For localization, Blazor renders content using the .NET Resources system.
Call .NET methods from JavaScript functions in ASP.NET Core Blazor
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 09/27/2022 76 minutes to read In this article This article explains how to invoke .NET methods from JavaScript (JS). For information on how to call JS functions from .NET, see Call JavaScript functions from .NET methods in ASP.NET Core Blazor.
ASP.NET Core Razor components
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 09/21/2022 177 minutes to read In this article This article explains how to create and use Razor components in Blazor apps, including guidance on Razor syntax, component naming, namespaces, and component parameters. Blazor apps are built using Razor components, informally known as Blazor components. A component is a self-contained portion of user interface (UI) with processing logic to enable dynamic behavior.
Call .NET methods from JavaScript functions in ASP.NET Core Blazor
Article 02/18/2022 41 minutes to read In this article This article covers invoking .NET methods from JavaScript (JS). For information on how to call JS functions from .NET, see Call JavaScript functions from .NET methods in ASP.NET Core Blazor. Invoke a static .NET method To invoke a static .NET method from JavaScript (JS), use the JS functions DotNet.invokeMethod or DotNet.invokeMethodAsync.
A Blazor Modal Dialog Editor
Introduction To set the context of this article, there have been many discussions, articles and proposals since Blazor was first released on how to handle edit forms. Specifically how to stop, or at least warn, the user when leaving a dirty form. The problem is not specific to Blazor: all Single Page Applications and Web Sites have the same challenges. In a classic web form, every navigation is a get or a post back to the server.
A Blazor Modal Editor
To set the context of this article, there have been many discussions, articles and proposals since Blazor was first released on how to handle edit forms. Specifically how to stop, or at least warn, the user when leaving a dirty form. The problem is not specific to Blazor: all Single Page Applications and Web Sites have the same challenges. In a classic web form, every navigation is a get or a post back to the server.
Blazor datepicker Component using JQuery
Introduction In one of my assignments where we were using Blazor.net, few of the forms had input control as date picker calender. The custom requirement as per the business logic was not possible to be implemented using the current Blazor InputDate component in EditForm.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with using
Contact using, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack