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 :)