如何用域名做邮箱 网站,天津网站建设公司推荐,推广普通话手抄报内容50字,网站的推广方案的内容有哪些NanUI是什么NanUI基于ChromiumFX项目进行开发#xff0c;它能让你在你的Winform应用程序中使用HTML5/CSS3/Javascript等网页技术来呈现用户界面#xff08;类似Electron#xff09;。同时NanUI提供了原生窗口和定制化的无标题栏无边框窗口#xff0c;你能使用全部的网页技术… NanUI是什么NanUI基于ChromiumFX项目进行开发它能让你在你的Winform应用程序中使用HTML5/CSS3/Javascript等网页技术来呈现用户界面类似Electron。同时NanUI提供了原生窗口和定制化的无标题栏无边框窗口你能使用全部的网页技术来设计和呈现你的应用程序界面。开源方式NanUI基于MIT协议所以无论你使用NanUI来开发商业项目或者开源、免费项目都将不受任何限制只需要遵照协议文件中规定的在你的软件中声明使用了NanUI技术即可。系列文档NanUI简介开始使用NanUI打包并使用内嵌式的HTML/CSS/JS资源使用网页来设计整个窗口如何实现C#与Javascript相互掉用(待更新。。。)如何处理NanUI中的下载过程 - DonwloadHandler的使用(待更新。。。)如何处理NanUI中的弹窗过程 - LifeSpanHandler的使用(待更新。。。)如何控制Javascript对话框 - JsDialogHandler的使用(待更新。。。)自定义资源处理程序 (待更新。。。)源码和包你可以通过GitHub获取NanUI的源码以及示例代码稳定版的NanUI包通过Nuget进行分发。NanUI支持.NET4.0/4.5/4.6/4.7和更新版本的Windows窗体应用。获取源码git clone https://github.com/NetDimension/NanUI.gitNuget包管理器常规版本CEF 3.2987.1601.gf035232 / Chromium 57.0.2987.133PM Install-Package NetDimension.NanUIWindowXP版本CEF 3.2526.1366.g8617e7c / Chromium 47.0.2526.80PM Install-Package NetDimension.NanUI.XP推荐使用Nuget包管理器安装NanUI程序集将自动安装对应的CEF依赖项一键安装方便使用。如何编译源码和示例编译当前版本的NanUI需要支持C#7.0语法的编译器推荐的编译工具有且只有Visual Studio 2017。如何使用初始化NanUInamespace TestApplication{ using NetDimension.NanUI; static class Program{[STAThread] static void Main(string[] args) {Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false); //初始化CEF: 设置CEF的相关Path//如果要使用Nuget自动下载的fx文件夹结构需要手动指定各个文件夹的路径var result Bootstrap.Load(PlatformArch.Auto, System.IO.Path.Combine(Application.StartupPath, fx), System.IO.Path.Combine(Application.StartupPath, fx\\Resources), System.IO.Path.Combine(Application.StartupPath, fx\\Resources\\locales)); if (result){ // Load embedded html/css resources in assembly.Bootstrap.RegisterAssemblyResources(System.Reflection.Assembly.GetExecutingAssembly());Application.Run(new Form1());Application.Exit();}}}
}使用原生的窗口样式来使用NanUInamespace TestApplication{ public partial class Form1 : Formium{ public Form1() //Load embedded resource index.html and not set form to no border style by the second parameter.: base(http://res.app.local/index.html, false) {InitializeComponent();}}
}使用无边框模式来使用NanUInamespace TestApplication{ public partial class Form1 : Formium{ public Form1() //Load embedded resource index.html and set form to no border style by igrone the second parameter or set it to true.: base(http://res.app.local/index.html) {InitializeComponent();}}
}请注意如果使用Visual Studio 2015或者更低的版本开发和调试NanUI应用程序需要在项目属性的调试选项卡中关闭“启用VS承载进程”选项否则调试时将出现页面不加载白屏的情况。如图所示社群和帮助GitHubhttps://github.com/NetDimension/NanUI/交流群QQ群 521854872原文地址:https://www.cnblogs.com/linxuanchen/p/NanUI-Introduction.html.NET社区新闻深度好文欢迎访问公众号文章汇总 http://www.csharpkit.com