My first app was of course a Hello World application on my Windows Phone. It’s really no big deal. Just setup your Visual Studio, install the Windows Phone SDK, and your all set. Within 10 min. you’ll have your hello world app.
Usually learning new skills takes a lot of time and effort. The first real results are often far away and as Stephen Covey said “Begin with the end in mind” I had to set some kind of goal to work to. Of course it isn’t much motivating to set the goal too far away.
So I set my goal to develop a Windows Phone 7.5 Silverlight application for my 2 year old son to play with. Just a plain and simple app to experiment a little.
As I designed my app in my mind and began to write some code I started to see what was different between a Commodore 64 and the current object oriented programming. On a C64 you simply set some parameters and the SID sound chip came alive. Nowadays you have to create a SoundEffect from a stream resource (SoundEffect.FromStream(SoundFileInfo.Stream)) to place the wav file and use the in the sound dispatcher, and use the XnaAsyncDispatcher to empty the queue.
On the other hands things got far more easy. The inkpad for example. It’s very easy to make use of the inkpad. Create an inkpresenter. Capture the event MouseLeftButtonDown to start capturing the mouse movement (CaptureMouse), add the stylus points to a stroke (System.Windows.Ink.Stroke) and add the stroke to the inkpresenter (Strokes.Add). Try this on a Commodore 64 !
To make the phone vibrate, is as easy as making a sound on a C64: VibrateController.Default.Start(TimeSpan.FromSeconds(2)).
If you want to see the result: here it is.