Updated SilverlightPad – Now with Javascript Editing and Preview


I had this idea about a month ago, but I was too busy prepping for MIX to put it together.  Take SilverlightPad, add a javascript textarea, and a run button.  When the button is clicked, dump the XAML and JS into a new iframe and create a new instance of the Silverlight plug-in to run the code. 


To invoke this, click on the JS tab and then the “parse” button will become a “run” button.  This interface is a bit clunky, but it’s servicable for now.  Each scene has a simple script that handles the first element’s click event.  The button scene has a more complicated script which triggers animations on mouse events.  As for code editing, there’s one limitation in that you need to have a JS class defined named “test”.  In a future update I’ll add an options pane where the name of the class this can be specified (or omitted). 


This update also uses the mouse cursor feature, so interactive UI parts now change the cursor.  Click the image below to run the sample.  The source for this sample can be found here.



Comments (28)

  1. I had this idea about a month ago, but I was too busy prepping for MIX to put it together. Take SilverlightPad

  2. Silverlight Resources bits & bytes · Get silverlight · Telerik RadControls – 3d virtual rooms using

  3. Many thanks to Asli Bilgin, DE extraordinaire, for pulling this list together. · silverlight · Telerik

  4. Once again, saved by other diligent internal Microsoft folks, a wonderful list of Silverlight resources

  5. Silverlight Resources bits & bytes · Get silverlight · Telerik RadControls – 3d virtual rooms using

  6. Silverlight Resources and Links

  7. Silverlight Resources bits & bytes · Get silverlight · Telerik RadControls – 3d virtual rooms using

  8. bits & bytes · Get silverlight · Telerik RadControls – 3d virtual rooms using control based framework

  9. Silverlight tuntuu kommenteista ja yhteydenotoista päätellen innostavan myös suomalaisia kehittäjiä.

  10. Joe On .NET says:

    Get Started with Silverlight

  11. Here is a slick list put together by Asli Bilgin (US East Region Developer Evangelist) Silverlight Resources

  12. Silverlight Resources bits & bytes · Get silverlight · Telerik RadControls – 3d virtual rooms using

  13. Asli Bilgin, a Developer Evangelist for Financial Services here in the East Region, put together this

  14. GerryJiang says:

    –转载自思归的blog(http://blog.joycode.com/saucer/archive/2007/05/15/102532.aspx)1.如果你真对Silverlight感兴趣的话,…

  15. Another week has shot by. Didn’t have any time to look at Silverlight although I have managed to download

  16. Another week has shot by. Didn’t have any time to look at Silverlight although I have managed to download

  17. OK!! You asked for more and you got more…. Here’s a comprehensive list of most of the resources for

  18. More Silverlight demo’s coming up

  19. markheath says:

    this is a great tool Mike. All that it needs is the ability to manage the list of XAML files – perhaps letting you save to isolated storage, or load in from a file on the local disk

  20. Nedan några samlade resurser runt Silverlight – mycket nöje! bits & bytes · Installera Silverlight

  21. Hace unos dias tuvimos la presentacion en sociedad de nuestra tecnologia denominada Microsoft Silverlight,

  22. В связи с тем, что появляется все больше и больше вопросов «Где добыть информацию по Silverlight», я

  23. Βρείτε παρακάτω μία λίστα με resources για το Silverlight: Silverlight Resources bits & bytes · Get

  24. Mix 2007 was simply awesome this year. I can’t remember an event as exciting as this one except when

  25. . says:

    This is a list of Silverlight resources I have been compiling. It is in no way definitive but figured

  26. This is a list of Silverlight resources I have been compiling. It is in no way definitive but figured

  27. You have to love a hotel where you have the amazing Lavazza coffee in your hotel room. CLR/Silverlight/Orcas/C# One of the things that has been a bit fustrating over the years with the CLR is the limitation of one CLR per process. Specifically, where