Good video. Well worth watching. You can also click on the first link in the description, to go right to Codeplex where you will find 3 more links:
Note: if you download the complete source code, you still get a directory (named RelaseJS) that has the 2 files you need: intellisense.js and intellisense.compressed.js
Here, are Justin's directions on the setup procedures:
2. Unzip and find these two files:
3. Drag a copy of these two files into your project
4. Add a script reference at the top of each .js file:
/// <reference path="intellisense.js" />
5. Add a script include to each html file:
That's it. You're done.
For example, in a video about to be released, I have the following xaml excerpt:
<ColorAnimation Duration="00:00:00.2" To="#22000000" Storyboard.TargetName="highlightEllipse"
My original .js file had this handler:
var mouseDownAnimation = sender.findName("mouseDown");
myButton = Convert.ToCanvas(sender);
var mouseDownAnimation = Convert.ToStoryboard(myButton.findName("mouseDown"));
That is darn close to strongly typed code. And it is self-documenting code, telling me quite clearly the type of the sender and the type of mouseDownAnimation – information that was not available previously.
Having Intellisense to help you is great….
But to tell you the truth, what I find more exciting, is the ability to convert the objects from typeless variables to (almost) strongly typed variables, (which, of course, is why Intellisense works!) and then to see Intellisense respond based on the true type of the object: creating code that is far more self-documenting and far more object-oriented.
Oh, yah, I now have 3 lines, not two, but it is 3 self-documenting lines; and for those who insist on brevity, the old Unix hacker in me is tempted to write it as
…but that would be bad.