NanUI-master

所属分类:其他
开发工具:C#
文件大小:1577KB
下载次数:17
上传日期:2018-01-30 15:53:40
上 传 者流浪的狼
说明:  C# 混合式开发控件,支持Html5/CSS3
(Mixed development Mixed development)

文件列表:
BorderlessFormStyleDemoApp (0, 2018-01-25)
BorderlessFormStyleDemoApp\App.config (184, 2018-01-25)
BorderlessFormStyleDemoApp\BorderlessFormStyleDemoApp.csproj (6465, 2018-01-25)
BorderlessFormStyleDemoApp\Form1.Designer.cs (2083, 2018-01-25)
BorderlessFormStyleDemoApp\Form1.cs (1166, 2018-01-25)
BorderlessFormStyleDemoApp\Form1.resx (5698, 2018-01-25)
BorderlessFormStyleDemoApp\Form2.Designer.cs (1111, 2018-01-25)
BorderlessFormStyleDemoApp\Form2.cs (441, 2018-01-25)
BorderlessFormStyleDemoApp\Form2.resx (5698, 2018-01-25)
BorderlessFormStyleDemoApp\Form3.Designer.cs (1111, 2018-01-25)
BorderlessFormStyleDemoApp\Form3.cs (391, 2018-01-25)
BorderlessFormStyleDemoApp\Form3.resx (5698, 2018-01-25)
BorderlessFormStyleDemoApp\Program.cs (1224, 2018-01-25)
BorderlessFormStyleDemoApp\Properties (0, 2018-01-25)
BorderlessFormStyleDemoApp\Properties\AssemblyInfo.cs (1354, 2018-01-25)
BorderlessFormStyleDemoApp\Properties\Resources.Designer.cs (3187, 2018-01-25)
BorderlessFormStyleDemoApp\Properties\Resources.resx (6074, 2018-01-25)
BorderlessFormStyleDemoApp\Properties\Settings.Designer.cs (1005, 2018-01-25)
BorderlessFormStyleDemoApp\Properties\Settings.settings (242, 2018-01-25)
BorderlessFormStyleDemoApp\Resources (0, 2018-01-25)
BorderlessFormStyleDemoApp\Resources\NanUI.png (7077, 2018-01-25)
BorderlessFormStyleDemoApp\asserts (0, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\PopupWindow.html (1458, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\fonts (0, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\fonts\fontawesome-webfont.woff2 (77160, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\index.html (2965, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\scripts (0, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\scripts\jquery-2.2.3.js (258648, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\styles (0, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\styles\app.css (2416, 2018-01-25)
BorderlessFormStyleDemoApp\asserts\styles\font-awesome.min.css (31000, 2018-01-25)
BorderlessFormStyleDemoApp\packages.config (159, 2018-01-25)
Icon.psd (57028, 2018-01-25)
LICENSE (1700, 2018-01-25)
NanUIWebBrowserControlDemo (0, 2018-01-25)
NanUIWebBrowserControlDemo\App.config (184, 2018-01-25)
NanUIWebBrowserControlDemo\Form1.Designer.cs (1860, 2018-01-25)
... ...

# Welcome to NanUI [中文说明](https://github.com/NetDimension/NanUI/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%***%8E) [NanUI](http://netdimension.github.io/NanUI/) is a library based on ChromiumFX that can let your Winform application use HTML5/CSS3 as user interface. You can use orginal Winform borders or full view no border form that use all html/css to design the interface. NanUI is MIT licensed, so you can use it in both business and free/open source application. For more details, see the [LICENSE](https://github.com/NetDimension/NanUI/blob/master/LICENSE) file. ![NanUI](http://img.blog.csdn.net/20171226150***3379) ## What's new in version 0.6 - Rewritted codes of no border interface logic, new version is faster than old versions. - NanUI now supports Hi-DPI in Windows 8 and later. - Combined HtmlUIForm and HtmlContentForm to one Formium which support these two styles. - Install Nuget Package of NanUI will add CEF and ChromiumFX dependencies to your application automatically. ## Changes **2018/1/25** - BUG FIX: When FormBorderStyle = None, the Form border will show incorrect **2018/1/23** - BUG FIX: ShowInTaskBar=True, NanUI will crash. **2018/1/16** - BUG FIX: ShowInTaskBar=True, ModernUI Shadows will show on incorrect position. - BUG: ShowInTaskBar=True, NanUI will crash. Please wait for this issue solved. **2018/1/10** - BUG FIX: NanUI.XP run at 32bit mode will crash sometimes. **2017/12/21** - New feature: added a new WebBrowser control to NanUI. You can now drag the WebBrowserControl to your form. **2017/12/11** - BUG FIX: n-ui-command html attribute doesn't fire and cause a javasscript error. - Update new nuget packages. **2017/11/24** - BUG FIX: n-ui-command html attribute will not fire if html source dosen't contain script tags. - Update new dependencies of NetDimension.NanUI. I made a mistake, the old one did not contain 32bit dependencies. So please reinstall the new one. **2017/9/25** - Fixed: if your project didn't has satellite resources, the program will crash by a dll file not found exception. - Fixed: if your html contains select element which is opened and dropdown is shown, moving or resizing the window will cause the dropdown at wrong place. **2017/9/22** - Add NetDimension.NanUI.XP project, it can use on Windows XP and it is based on CEF3.2526.1373. - The sources of NanUI 0.6 is open source now. - Fixed an issue that if you add embedded globalization files like xxx.zh-cn.js or xxx.en-us.css to your project, the complier will auto generate satellite files in output fold and NanUI did not loads these files correctly. **2017/9/10** - update to version 0.6 ## Build NetDimension.NanUI.dll You should use the complier which supports C# 7.0 syntax. Visual Studio 2017 is recommended. ## Releases Stable NanUI binaries are released on NuGet. Use following Nuget command to install latest version of NanUI to your Winfrom application. It will install CEF and CFX dependencies too and the dependencies will automatic copy to the **bin** folder. **NOTE:** NanUI requires .Net Framework 4.0 as minimal support. **Nuget Package Manager** ``` PM> Install-Package NetDimension.NanUI ``` **Release of NetDimension.NanUI.XP** Another version of NanUI that supports **Windows XP** is now can be downloaded on Nuget by using following command: ``` PM> Install-Package NetDimension.NanUI.XP ``` **Download Manually** - [NetDimension.NanUI](https://www.nuget.org/packages/NetDimension.NanUI/) - NanUI main library - [NetDimension.NanUI.Cef2***7](https://www.nuget.org/packages/NetDimension.NanUI.Cef2***7/) - Dependencies of NanUI (Include CEF3.2***7.1601.0 and ChromiumFX3.2***7.1601 binaries) ## Basic Usage **Initialize Runtime in Main** ```C# namespace TestApplication { using NetDimension.NanUI; static class Program { [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Initalize: set CEF paths //If you use default structure of the FX folder, you should provide paths of fx folder, resources folder and locales folder. 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(); } } } } ``` **Using native Winform border style** ```C# namespace 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(); } } } ``` **Using no border style** ```C# namespace 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(); } } } ``` ## Documentation I have no time for writting documents for the present, documents will come late. ## Donate If you like my work, please buy me a cup of coffee to encourage me continue with this library. In *** you can donate me by scaning the QR code below in **Alipay** or **WeChat** app. ![Screen Shot](http://ohtrip.cn/media/beg_with_border.png) Or you can donate me by **Paypal**. [![DONATE](http://ohtrip.cn/media/PayPal-donate-button.png)](https://www.paypal.me/mrjson)

近期下载者

相关文件


收藏者