当前位置:网站首页>.NET-6.WinForm2.NanUI learning and summary
.NET-6.WinForm2.NanUI learning and summary
2022-07-31 04:55:00 【joyyi9】
NanUI学习和总结
前言
其实这个和electron.js,nw.js 差不多,任何htmlcan be embedded in;
也就是webDevelopment can be embedded,angular,vue,react,node.js的web,都可以哦!
挺爽的.
See the documentation for other small details.
参考文档:
官方文档
第一个NanUI程序:
1. 下载Nuget包:
NetDimension.NanUI
NetDimension.NanUI.Runtime
2. 建立一个Winform程序
3. 创建主窗体:MainWindow.cs
4. 初始化在Main方法中
5. 运行
MainWindow.cs:
using NetDimension.NanUI;
using NetDimension.NanUI.HostWindow;
class MainWindow : Formium
{
// 设置窗体样式类型
public override HostWindowType WindowType => HostWindowType.System;
// 指定启动 Url
public override string StartUrl => "https://www.bing.com";
public MainWindow()
{
// 在此处设置窗口样式
Size = new System.Drawing.Size(1024, 768);
}
protected override void OnReady()
{
// 在此处进行浏览器相关操作
//ShowDevTools();
//ExecuteJavaScript("alert('Hello NanUI')");
}
}
Program.cs:
using NetDimension.NanUI;
class Program
{
static void Main()
{
// ...
WinFormium.CreateRuntimeBuilder(env => {
env.CustomCefSettings(settings =>
{
// 在此处设置 CEF 的相关参数
});
env.CustomCefCommandLineArguments(commandLine =>
{
// 在此处指定 CEF 命令行参数
});
}, app =>
{
// 指定启动窗体
app.UseMainWindow(context => new MainWindow());
})
.Build()
.Run();
}
}
总结
继续学习.
边栏推荐
- Multiple table query of sql statement
- EasyExcel的简单读取操作
- 30 Years of Open Source Community | 2022 Open Atom Global Open Source Summit 30 Years of Open Source Community Special Event Held Successfully
- [Linear Neural Network] softmax regression
- MySQL优化之慢日志查询
- MySQL数据库增删改查(基础操作命令详解)
- Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
- HCIP第十天_BGP路由汇总实验
- A complete introduction to JSqlParse of Sql parsing and conversion
- ERP Production Operation Control Kingdee
猜你喜欢
![[debug highlights] Expected input batch_size (1) to match target batch_size (0)](/img/b3/ff6ccc3cd307befad3bd07a9f4a956.png)
[debug highlights] Expected input batch_size (1) to match target batch_size (0)

HCIP Day 10_BGP Route Summary Experiment

从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)

12个MySQL慢查询的原因分析

Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held

STM32——DMA

SOLVED: After accidentally uninstalling pip (two ways to manually install pip)

sql语句之多表查询

MySQL优化:从十几秒优化到三百毫秒

Multiple table query of sql statement
随机推荐
unity2d小游戏
centos7安装mysql5.7
矩池云快速安装torch-sparse、torch-geometric等包
Explanation of
【debug锦集】Expected input batch_size (1) to match target batch_size (0)
.NET-6.WinForm2.NanUI学习和总结
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
sql statement - how to query data in another table based on the data in one table
[C language] Detailed explanation of operators
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
110道 MySQL面试题及答案 (持续更新)
[Cloud Native] DevOps (5): Integrating Harbor
1. 获取数据-requests.get()
Mysql application cannot find my.ini file after installation
VScode+ESP32 quickly install ESP-IDF plugin
CentOS7 —— yum安装mysql
MySQL transaction isolation level, rounding
30 Years of Open Source Community | 2022 Open Atom Global Open Source Summit 30 Years of Open Source Community Special Event Held Successfully
Unity教程:URP渲染管线实战教程系列【1】