# WinFormium
Easily buid powerful WinForm applications with HTML, CSS and JavaScript.
![GitHub](https://img.shields.io/github/license/XuanchenLin/NanUI)
![Nuget](https://img.shields.io/nuget/v/NetDimension.NanUI)
![Nuget](https://img.shields.io/nuget/dt/NetDimension.NanUI)
## About
WinFormium is a open source framework on .NET platform for creating user interface of WinForm Applicaitons using HTML5, CSS3, and JavaScript. It is based on the [Xilium.CefGlue](https://bitbucket.org/xilium/xilium.cefglue/wiki/Home) project, which is a .NET wrapper around the [Chromium Embedded Framework](https://bitbucket.org/chromiumembedded/cef).
If you are looking for a framework for creating a WinForm application with a modern user interface, WinFormium is a good choice. you can use HTML, CSS, and JavaScript to create a user interface, and use C# to write the business logic of the application.
## Platform
This is a **Windows Only** framework, it can not run on Linux or Mac OS.
The minimum supported Windows is Windows 7 Service Pack 1, and some features (such as DirectComposition Offscreen Rendering) are not supported on Windows 7.
## Requirements
**For Development**
- .NET Framework 4.6.2 or higher / .NET 5.0 or higher
- Visual Studio 2019 or heigher (VS2022 is recommended)
**For Deployment**
- Microsoft Windows 7 Service Pack 1 or higher
- .Net Framework 4.6.2 or higher
- .NET 5.0/6.0 for Windows 7 and above.
- .NET 7.0/8.0 for Windows 10 and above.
## Getting Started
Create a simple WinFormium application with the following steps:
**1. Create a WinForm Application by default template**
**2. Install WinFormium NuGet Package**
Open the NuGet Package Manager to install or use NuGet Package Manager Console, and run the following command to install WinFormium nuget package:
```powershell
PM> Install-Package NetDimension.NanUI
```
Install the dependencies of Chromium Embedded Framework that WinFormium depends on:
```powershell
PM> Install-Package NetDimension.NanUI.Runtime
```
**3. A basic WinFormium application requires the following code:**
Modify the code in the Program.cs file as follows:
```csharp
using WinFormium;
class Program
{
[STAThread]
static void Main(string[] args)
{
var builder = WinFormiumApp.CreateBuilder();
builder.UseWinFormiumApp<MyApp>();
var app = builder.Build();
app.Run();
}
}
```
Create a class implements **WinFormiumStartup** for configuring the application:
```csharp
using WinFormium;
class MyAPP : WinFormiumStartup
{
protected override MainWindowCreationAction? UseMainWindow(MainWindowOptions opts)
{
// Configure the main window of this application
return opts.UseMainFormium<MyWindow>();
}
protected override void WinFormiumMain(string[] args)
{
// The codes in Main function should be here, this function only runs in Main process. So it can prevent the codes in Main process running in sub-processes.
ApplicationConfiguration.Initialize();
}
protected override void ConfigurationChromiumEmbedded(ChromiumEnvironmentBuiler cef)
{
// Configure the Chromium Embedded Framework here
}
protected override void ConfigureServices(IServiceCollection services)
{
// Configure the services of this application here
}
}
```
Create a class implements **Formium** for configuring the main window of the application:
```csharp
using WinFormium;
using WinFormium.Forms;
class MyWindow : Formium
{
public MyWindow()
{
Url = "https://www.google.com";
}
protected override FormStyle ConfigureWindowStyle(WindowStyleBuilder builder)
{
// Configure the style of the window here or leave it blank to use the default style
var style = builder.UseSystemForm();
style.TitleBar = false;
style.DefaultAppTitle = "My first WinFomrim app";
return style;
}
}
```
**4. Build and run your WinFormium application.**
没有合适的资源?快使用搜索试试~ 我知道了~
.NET 平台上的一个开源框架,用于使用HTML5、CSS3和JavaScript创建WinForm应用程序的用户界面
共949个文件
cs:843个
png:34个
md:30个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2024-11-03
19:22:32
上传
评论
收藏 10.75MB ZIP 举报
温馨提示
WinFormium 是 .NET 平台上的一个开源框架(曾用名:NanUI),用于使用 HTML5、CSS3 和 JavaScript 创建 WinForm 应用程序的用户界面。 它基于 Xilium.CefGlue 项目,该项目是 Chromium Embedded Framework (CEF) 的 .NET 实现。
资源推荐
资源详情
资源评论
收起资源包目录
.NET 平台上的一个开源框架,用于使用HTML5、CSS3和JavaScript创建WinForm应用程序的用户界面 (949个子文件)
CHANELOG 69B
NuGet.config 401B
cef_browser_host_t.g.cs 60KB
cef_menu_model_t.g.cs 55KB
cef_v8value_t.g.cs 50KB
CefErrorCode.cs 49KB
CefRuntime.cs 43KB
CefBrowserHost.cs 38KB
cef_xml_reader_t.g.cs 29KB
cef_dictionary_value_t.g.cs 29KB
cef_list_value_t.g.cs 27KB
Formium.Members.cs 27KB
FramelessWindowBase.cs 26KB
cef_request_context_t.g.cs 26KB
cef_domnode_t.g.cs 26KB
cef_drag_data_t.g.cs 26KB
Formium.cs 25KB
CefV8Value.cs 25KB
cef_frame_t.g.cs 24KB
Formium.Events.cs 24KB
cef_print_settings_t.g.cs 23KB
cef_request_t.g.cs 23KB
cef_context_menu_params_t.g.cs 22KB
cef_value_t.g.cs 21KB
cef_command_line_t.g.cs 21KB
cef_browser_t.g.cs 21KB
CefMenuModel.cs 21KB
OffscreenImeHandler.cs 19KB
cef_response_t.g.cs 18KB
cef_download_item_t.g.cs 18KB
FormiumWindowBindingObject.cs 18KB
CefSettings.cs 17KB
cef_image_t.g.cs 16KB
cef_domdocument_t.g.cs 16KB
cef_server_t.g.cs 16KB
CefRequestContext.cs 16KB
CefRenderHandler.cs 16KB
WinFormiumApp.cs 14KB
cef_zip_reader_t.g.cs 14KB
CefDictionaryValue.cs 14KB
JavaScriptValue.cs 14KB
MyWindow.cs 13KB
WebView.IContextMenuHandler.cs 13KB
CefRequestHandler.cs 13KB
cef_x509certificate_t.g.cs 13KB
cef_navigation_entry_t.g.cs 12KB
cef_x509cert_principal_t.g.cs 12KB
CefResourceRequestHandler.cs 12KB
CefLifeSpanHandler.cs 12KB
cef_v8context_t.g.cs 12KB
libcef.g.cs 11KB
Formium.Overrides.cs 11KB
CefXmlReader.cs 11KB
cef_post_data_element_t.g.cs 11KB
cef_v8exception_t.g.cs 10KB
cef_v8stack_frame_t.g.cs 10KB
cef_media_sink_t.g.cs 10KB
cef_extension_t.g.cs 10KB
CefExtensionHandler.cs 10KB
CefListValue.cs 10KB
cef_post_data_t.g.cs 10KB
Messages.Designer.cs 10KB
SystemDpiManager.cs 10KB
CefBrowserSettings.cs 10KB
cef_urlrequest_t.g.cs 10KB
Resources.Designer.cs 10KB
CefCommandLine.cs 10KB
cef_binary_value_t.g.cs 10KB
CefFrame.cs 9KB
CefResourceHandler.cs 9KB
CefImage.cs 9KB
Formium.IRenderHandler.Implements.cs 9KB
cef_process_message_t.g.cs 9KB
CefDragData.cs 9KB
cef_cookie_manager_t.g.cs 9KB
CefServer.cs 9KB
StandardWindowBase.cs 9KB
JavaScriptEngineBridge.Local.cs 9KB
cef_preference_manager_t.g.cs 9KB
ChromiumEnvironmentBuiler.cs 9KB
DataResourceRoute.cs 9KB
cef_task_runner_t.g.cs 8KB
cef_media_router_t.g.cs 8KB
CefClient.cs 8KB
CefFrameHandler.cs 8KB
StatusCodes.cs 8KB
cef_stream_reader_t.g.cs 8KB
CefRequest.cs 8KB
ResourceHandler.cs 8KB
cef_stream_writer_t.g.cs 8KB
CefClient.g.cs 8KB
JavaScriptWindowBindingObject.cs 8KB
ResourceRequest.cs 8KB
cef_sslstatus_t.g.cs 8KB
CefDomNode.cs 8KB
CefDisplayHandler.cs 8KB
CefValue.cs 8KB
JavaScriptValueConverterExtensions.cs 8KB
cef_media_route_t.g.cs 8KB
CefContextMenuHandler.cs 8KB
共 949 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7435
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 无人机检测23-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 1733240052845179_downFile.do
- 无人机检测2-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 华为机架服务器iBMC (V300 及以上) 用户指南
- linux内核学习很好的书籍,建议初学者都去阅读一下
- abb上位机开发,远程启动与数据读取
- wt-js-debug v2.7.6
- 施工防护检测38-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 基于Python实现的新浪微博用户数据爬虫源码(文档说明,支持HTTP请求与数据解析,多格式数据存储与自动化采集)
- 实现按层次遍历二叉树的C++代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功