# Tuesday, November 13, 2007

It only took me two or three months, but I finally updated my Silverlight Hangman application.  It was originally written an earlier version of Silverlight 1.1 alpha, and I hadn't taken the time to update it.

The only things I had to do was switch out the Silverlight.js file and change the value of "Hidden" to "Collapsed" for the "Visibility" property of objects.  Otherwise I was able to use the same files in the Beta 2 version of Visual Studio 2008.

(Darn, I bet when Visual Studio 2008 is released soon I'll have to update it again!  Oh well!)

Enjoy!

posted on Tuesday, November 13, 2007 4:54:22 PM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
# Saturday, November 03, 2007

Last Monday, three of us from Statera (Troy Hall, Colin McGraw, and myself) presented on the topic of Silverlight at the first MSDN Masters Series presentations in Denver, CO.  This event was hosted by Joe Shirey, an architect evangelist for MSFT, and was geared towards technical folks at the 200-300 level.

We presented the following three sessions over the course of four hours:

1. Programming Silverlight (Wade Wegner)
2: ASP.NET, AJAX and Silverlight (Colin McGraw)
3: Silverlight and Media (Troy Hall)

We had a good healthy attendance, and it is my hope that the topic was received well by the audience.

As promised, here are the slides from the presentation:

1. MSDN Masters Series - Programming Silverlight.pdf
2. MSDN Masters Series - ASP.NET, AJAX, and Silverlight.pdf
3. MSDN Masters Series - Silverlight and Media.pdf

Additionally, Colin has provided the source code for the Photo Site he demonstrated in his talk:

- PhotoSite_VS2005WebSiteProject.zip

And lastly, here's a slide deck I used for a "non-technical" discussion of Silverlight:

- Silverlight Intro.pdf

I hope you find these useful.  Feel free to reach out if you have any questions.

posted on Saturday, November 03, 2007 8:59:37 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
# Monday, July 23, 2007

This weekend I spent some time playing with Silverlight and Orcas.  Needless to say, I am very impressed with both.  Here's a sample Hangman application I created in about three hours.

I thought I'd go ahead and document the steps I took when I setup my development environment.  I'll try to come back here and update the content, so that it stays pertinent as updates are released.

Setting up a Silverlight development environment

  1. Make sure to read everything you can on Silverlight, as well as the Get Started Silverlight page (I've listed a number of good blogs at the bottom of this post).
  2. Install Microsoft Silverlight 1.0 Beta (for Windows).  This is the runtime that's required to experience Silverlight applications.
  3. Install Microsoft Silverlight 1.1 Alpha (for Windows).  This is the runtime that's required to experience Silverlight applications written with .NET.
  4. Reboot.
  5. Install Microsoft Visual Studio codename "Orcas" Beta 1.  Soon to be Visual Studio 2008, this is the next evolution of Visual Studio 2005.  It's pretty sweet.
  6. Reboot.
  7. Optional: Install Microsoft MSDN Library for Visual Studio codename "Orcas".  Watch out - during the installation of the MSDN Library, it took about five minutes for it to complete this step.  Be patient, and let it finish.
    MSDN Library install
  8. Reboot.
  9. Install Microsoft ASP.NET Futures (May 2007).  This provides you with ASP.NET controls for Silverlight.
  10. Install Expression Blend 2 May Preview.  This is a design tool that allows a user to interact with Silverlight.  Note: this is different from Expression Blend that can be found on MSDN.  Make sure to get this download.  Also, Tim Heuer pointed me to http://www.microsoft.com/Expression/products/download.aspx?key=blend2maypreview, which provides a product key and longer trial (180-day evaluation).  Note: when I went to install Expression Blend 2, I was only given two choices: Vista, or Windows XP.  My development VM is Windows Server 2003 Standard R2.  I chose Windows XP, and haven't had any problems.
    Expression Blend 2 choice
  11. Install Microsoft Silverlight Tools Alpha for Visual Studio codename "Orcas" Beta 1.  This is an add-on that allows you to create Silverlight applications using .NET.
  12. Download Microsoft Silverlight 1.0 Beta Software Development Kit (SDK).  This is a zip file that contains documentation, samples along with templates for Visual Studio, and has also a “Go Live” license that enables building commercial applications.  I unzipped it to C:\Program Files\Microsoft Silverlight\SDKs.
  13. Download Microsoft Silverlight 1.1 Alpha Software Development Kit (SDK).  This is another zip file that contains documentation and samples Silverlight Web experiences that target Silverlight 1.1 Alpha.

That should be enough to get your environment up and running.  Once that's complete, watch this Silverlight walk-through: http://silverlight.net/quickstarts/silverlight10/xaml.aspx.

Here are some good Silverlight blogs I've found (send me email, or leave me a comment, if you know of more): 

Also, here are a few interesting posts:

I hope someone finds this useful!  Leave a comment if you've developed something cool, so that I can check it out!

posted on Monday, July 23, 2007 9:17:41 AM (Central Standard Time, UTC-06:00)  #    Comments [4] Trackback
# Sunday, July 22, 2007

I had no idea that this game would be so popular!  Despite the crappy graphics, it's been referred half a dozen times, and received almost 300 unique hits in the last 24-hours.  Pretty amazing!

Here's the link to Hangman.  Give it a try.  Here's the original Hangman announcement.

There have been a few updates to the original program, including:

  • Includes the definition of the word; calls a .NET web service that parses a web response from Dictionary.com (please let me know if you find problems!)
  • Tracks statistics (e.g. total times played, won, and lost); so far we lose a LOT more 
  • Frees the man from the noose if you win

Yes, they're all silly little updates, but hopefully it increases the enjoyment of the game.

Here are a couple screen shots with the updates.  The first one shows what happens when you die, err, lose.

Hangman; lose

This next one shows what happens when you win.  Doesn't that look a lot more pleasant?

Hangman; winning

This sure is fun stuff to play with.  Now that I feel more comfortable with Silverlight and WPF, there are all kinds of things I'd like to write.  It's a shame I'm not more artistic.

Anyone out there have some mad artistic skills that would like to team up with me?

Best of luck!

posted on Sunday, July 22, 2007 3:08:13 PM (Central Standard Time, UTC-06:00)  #    Comments [2] Trackback
# Saturday, July 21, 2007

Unfortunately I don't have enough time at the moment to write-up a full post that outlines how this works (we have friends coming over for dinner), but I wanted to at least share my very first attempt at a Silverlight and WPF web application.

Check out Hangman!

It's a pretty slick (albeit graphically retarded) Silverlight application.  It uses Microsoft Silverlight 1.1 Alpha (for Windows), and I built it on the work I did devising a strategy to (consistently) win hangman.

Hangman with Silverlight and .NET 3.5

I plan to eventually write a post explaining exactly how I setup my development environment, how the technology within this application functions, and I'll post the source code (once I refactor it).

What do you think?  Have you built any Silverlight applications?

posted on Saturday, July 21, 2007 4:49:47 PM (Central Standard Time, UTC-06:00)  #    Comments [2] Trackback

I was writing a Silverlight application today, when I came across the following error when trying to invoke a web service method from my Silverlight project:

"Error invoking service"

After digging around a little bit, I noticed the following above my web method:

// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]

"Ahh!" I said, as I uncommented the class attribute.

Unfortunately, when I tried to compile I was told:

The type or namespace name 'Script' does not exist in the namespace System.Web' (are you missing an assembly reference?)

So, I went to "Add Reference", added "System.Web.Extensions" to my project, and now it compiles!  And, after testing my web service call from my Silverlight project, the data from the web services is returned to my Silverlight project as expected.

Nice!

posted on Saturday, July 21, 2007 3:24:10 PM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback