Hello everyone, I’m a heartbroken editor for the majority of programmers. I recommend a small tool / source code every day, fill your favorites, and share a little skill every day, so that you can easily save development efficiency, and achieve the goal of not working overtime, not staying up late and not losing your hair!
today Xiaobian recommends a. Net forms application (WinForms) interface componentNanUI. Nanui is an open source. Net /. Net core forms application (WinForms) interface component. It is suitable for. Net /. Net core developers who want to use front-end technologies such as HTML5 / CSS3 to build the user interface of Windows Forms applications.
- Browser hosted formThe nanui interface component provides two different styles of forms: native form and borderless form, which users can choose flexibly to achieve different design effects.
- Resource processor: a variety of resource handlers are built into the nanui interface component. Users can select the corresponding resource processor for different scenarios to provide files, data and other resources for the front-end program. In addition, user-defined resource processors can be developed according to specific requirements.
- Browser controls: users can use the chromium WebBrowser control provided by the nanui interface component just like the WebBrowser control of. Net. Drag it from the toolbox to the window and you’re done.
- Custom CEF behavior processor: nanui opens the browser client behavior processor interfaces of chromium embedded framework. By customizing the response events of each interface, various browser functions will be realized for the application.
- Multi process architecture: nanui inherits the chromium multi process architecture. This means that each web page is rendered in a separate chromium rendering process. In fact, all functions run in separate processes. This means that chromium will not use the memory of the. Net application.
- Subprocess: nanui provides browser subprocess programs adapted to different. Net frameworks. Using subprocess program can separate business process from browser process.
The native form style of the system is consistent with the traditional WinForm application interface. It has the title bar, border and system command area of the system style, which is similar to the same appearance when dragging the WebBrowser control on the traditional form control and setting the dock property to fill.
WindowTypeSpecifies the property value
BorderlessYou can set the form style to borderless. Borderless style removes the title bar and border of the native system, and you can use the whole form area to draw your application interface.
Kiosk style forms are commonly used in scenes where full screen display of form content is required, such as industrial control upper computer interface, query machine interface, data large screen, etc.
Special shaped window
Using the layered style allows you to create alien, translucent forms. It is similar to the acceleration ball provided by various masters and housekeepers.
Acrylic special effects window
Acrylic special effect is a new function provided by the innovators of windows 10 after the new version. It allows the transparent or translucent area of the window to mix with the desktop elements to achieve a special frosted acrylic effect. The same as the layered style, according to the settings of transparent or translucent areas in the web page, the frosted glass effect with specific effect will be realized.
this issue is to share here, I’m Xiaobian nanfengfeng, focusing on sharing interesting, novel and practical open source projects, developer tools and learning resources! I hope to learn and communicate with you all. Welcome to my official account.[GitHub navigation station]。