百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

Neutronium

> 前端框架
开源

使用 HTML、CSS 和 JavaScript 构建 .NET 桌面应用程序。

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 HTML、CSS 和 JavaScript 构建 .NET 桌面应用程序。

Neutronium

https://neutroniumcore.github.io/Neutronium/ What is Neutronium? ------------------- * Neutronium is a library to create **.NET desktop applications** using **HTML, CSS** and **javascript**. * Neutronium uses **[MVVM pattern](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel)** exactly the same way as WPF application. * Neutronium provides bindings with **Vue.js** and **Knockout.js** to build powerful HTML5 UI. Why Neutronium? --------------- * Use all the **power of the javascript stack** to build .NET desktop applications. * **Easy to use**: * Architecture Neutronium application **just like standard WPF** application. * **Compatible** with popular **MVVM libraries** such as [MVVM Light Toolkit](http://www.mvvmlight.net/) and [reactiveUi](http://reactiveui.net/) * Use **standard javascript frameworks** to build UI * **Easy to set-up**: * **[Solution template](https://visualstudiogallery.msdn.microsoft.com/c7679997-e25b-4a79-a65f-30758fb756d8)** available for a quick start * **[Use javascript framework cli tools](https://github.com/NeutroniumCore/vue-cli-plugin-neutronium)** to use the same tool chain as web developmenet taking chance of tools such as live reload. * **Reuse** ViewModel designed for WPF with a different View Engine. * Build UI on a 100% **Open Source Stack** Uses cases ---------- * [Create an application from scratch](./Documentation/Content/UsesCases/New_project.md) * Migrate an existing WPF MVVM application to Neutronium * Use Neutronium to embed an HTML control in an WPF application Main features ------------- * **Reactive** to property and collection changes * **Two way-binding** beetween view and viewmodel, including **command** binding * **Pluggable architecture**: * Easily plug-in new javascript frameworks or even embedded browser. How? ---- * Neutronium combines [Chromium](https://www.chromium.org) via [ChromiumFx C# lib](https://bitbucket.org/chromiumfx/chromiumfx) and a binding engine that converts back and forth C# POCO to javascript POCO. * Javascript objects are then used as ViewModel for javascript MVVM library such as [knockout.js]("http://knockoutjs.com/) or [Vue.js](http://vuejs.org/images/logo.png). * Listeners are set-up on C# and javascript side for two-way binding. On the shoulders of giants --------------------------

Usage - Example -------------- **ViewModel (C#)** ``` … ``` **View (HTML)** * **First option: use Vue.js** ```HTML Vue.js Example
  • {{skill.Type}}:{{skill.Name}} Remove skill
``` **Create the component(C# Xaml)** ```HTML ``` The binding is done on the DataContext property just as standard WPF, That's it! Examples -------- [here](https://neutroniumcore.github.io/Neutronium/overview/made.html) Get started ---------- Best way to start with Neutronium is to download template C# solution [from visual studio gallery](https://visualstudiogallery.msdn.microsoft.com/c7679997-e25b-4a79-a65f-30758fb756d8). [See Here](https://neutroniumcore.github.io/Neutronium/articles/installing.html) for detailed instructions. Complete Documentation ---------------------- [Here](http://neutroniumcore.github.io/Neutronium/) Comparison with other libraries: --------------------------------- * [Electron](http://electron.atom.io/) Neutronium is electron for .NET? Well, kind of. Neutronium however is a higher abstraction so that you don't need to care about Chromium implementation such as renderer or browser processes. * [Awesomium](http://www.awesomium.com/) Different from other libraries Awesomium is not open source. Last update was embedding Chrome 19 so it is pretty out of date. One neutronium distribution offer Awesomium as WebBrowser. * [CefGlue](https://gitlab.com/xiliumhq/chromiumembedded/cefglue), [ChromiumFx](https://bitbucket.org/chromiumfx/chromiumfx), [CefSharp](https://github.com/cefsharp/CefSharp) All are open source libraries presenting up-to-date C# binding for [CEF](https://bitbucket.org/chromiumembedded/cef) * [CefGlue](https://gitlab.com/xiliumhq/chromiumembedded/cefglue) Offers all API of CEF. Used by Neutronium as a test WebBrowser using the mono-process option. * [ChromiumFx](https://bitbucket.org/chromiumfx/chromiumfx) Same as CefGlue + remote API that handles communication between Chromium processes. Neutronium recommended set-up uses ChromiumFx as a WebBrowser. * [CefSharp](https://github.com/cefsharp/CefSharp) Well documented and package solution (including nuget). Does not offer all CEF binding to javascript however. Nuget packages -------------- [ChromiumFx browser and Vue.js](https://www.nuget.org/packages/Neutronium.ChromiumFx.Vue/) [ChromiumFx browser and knockout.js](https://www.nuget.org/packages/Neutronium.ChromiumFx.Knockout/) This project is a continuation and improvement of [MVVM-for-awesomium.](https://github.com/David-Desmaisons/MVVM-for-awesomium/) Support ------- Many thanks to [JetBrains](https://www.jetbrains.com/?from=Neutronium) for support and awesome [Resharper](https://www.jetbrains.com/resharper/?from=Neutronium)!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#browserc-sharpchromiumframework

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架