Recently, because the project needs to develop the PC version, so it involves the development of the PC version of the technology selection problem.
Using WinForm: The interface design is too ugly.
Using WPF: The interface looks good, but the memory footprint is too high. And the company's WPF technical strength is not strong
Finally, the decision to use a front-end page is implemented, and C # is just as a shell. This way, a front-end interface is more dazzling, there are many mature front-end framework available, and secondly, the company also has a dedicated front-end page of colleagues. (Because of the company's. NET staff are more nervous)
Now that you've decided, you're ready to do the demo. Do technology pre-research (the stage of the pit came to ^_^)
Let's start with the third-party library of JS and C # interactions: Chromiumfx
(Chromiumfx details of the waiting time to complete the completion)
JS and C # Interaction, can achieve what kind of page effect, can refer to nanui--author is Lin Xunson, the effect is very good
Http://www.cnblogs.com/linxuanchen/p/5509076.html
My dem is just a reference to the part of his code. Originally wanted to start doing the function on the basis that he already has. Later, however, it was required based on the. NET 3.5 FrameWork (since the lowest Win7 version is 3.5). and Nanui is version 4.0.
But the impact is not big, here, we compile the CHROMIUMFX to 3.5 version, and then write the code on the line
I've uploaded the code to the Git page. After you download, modify the page inside, referring to the local page address, you can see the demo.
The main collection of JS and C # interaction, git address:
Https://github.com/Ian-HL/JSCSharp
The first time to write a blog, there is a part of the content to be added, tomorrow to fill a full
JavaScript interoperability examples with C #