Wintellect  

March 2008 - Posts

Quick: can you spot what's wrong with this code? Thread thread = new Thread ( new ThreadStart (RunClock)); thread.Start(); ... private void RunClock() { while ( true ) { Clock.Text = DateTime .Now.ToLongTimeString(); } } The intent is to launch a thread Read More...
A few weeks ago I posted a short code sample demonstrating how to do mousewheel zooms in Silverlight 1.1. They're easier to do in Silverlight 2.0 and can be done without calling out of managed code, thanks to the new HtmlWindow class (and the HtmlPage.Window Read More...
Silverlight 1.1 lacked a managed equivalent of JavaScript's window.alert, so when I wanted to pop up a message box (actually, an alert box) in Silverlight 1.1, I used the platform's DOM integration features to fire a scriptable event from C# and handle Read More...
In Silverlight 1.1, it was impossible to load images from the local file system unless you uploaded them to a server first. In Silverlight 2.0, it's a piece of cake to load local images as long as you involve the user by displaying an OpenFileDialog: Read More...
Silverlight 2.0 Beta 1 shipped yesterday, so I thought now would be a good time to deploy a new version of SilverLife. SilverLife is a Silverlight implementation of John Conway's game of Life. Version 1.0, which I published in August of last year, targeted Read More...