JavaScript interoperability examples with C #

Source: Internet
Author: User

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 #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.