Sighs at the Javascript smart sensing in Silverlight

Source: Internet
Author: User

There is an old saying in China: to do good things, you must first sharpen your skills.

Recently, I have been studying the development and logic of Silverlight 1.0.CodeIt needs to be written in Js. Anyone who has used it knows that using vs to write JS Code can only provide the most basic smart sensing, but cannot provide the library function prompts and instructions in SL. Therefore, writing may be difficult.

However, a foreigner who loves sunglasses wrote an open-source tool to help us write SL code with intelligent sensing.

HisArticleSilverlight 1.0 full JavaScript intelliisense and video.

I have been deeply touched by his articles and videos.

To enable Visual Studio to provide intelligent sensing functions when writing sl js Code, he also compiled the corresponding JS Code to provide a series of interfaces different from the functions provided in the SDK documentation for us to call (in conjunction with the documentation ). However, the disadvantage is that we need to add an additional 1 mb js file (which can be reduced to 400 Kb) at the time of release ), it also reduces the execution performance of the function (after all, it is packaged on the original SDK function ).

To overcome this shortcoming, he provides a small tool to convert the JS Code of intelligent sensing into non-inductive code (using the original SDK function ), in this way, you can avoid additional file and performance loss.

Although the latest SDK (2.0 +) can use the. NET environment to edit the logic part, this idea has inspired me a lot. At the same time, this is also a good example of learning JS :)

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.