Oct 09
Recursion is a very common technique for creating various type of graphics in Flash. Is the recursion technique also possible in Silverlight? Surely it can be. Let’s have a look on the sample below.
Comparison
Flash implementation: 30minutes
Silverlight implementation: 45minutes (Implemented First)
Source codes
Recursion Tree [Flash 9, AS3] (11.4 KiB, 1,191 hits)
Recursion Tree [Silverlight 2, C#] (18.9 KiB, 1,644 hits)

October 9th, 2008 at 3:29 am
Hi, nice blog here, and nice samples… but in this one, it said you spend 450 hours, is that real or is it a typo?
October 9th, 2008 at 7:10 am
450 minutes? or 45minutes?
If its 450 minutes than I’m confused as to what you did that took that long as looking at the code it looks more like 20-45mins worth of work.
-
Scott Barnes
Rich Platforms Product Manager
Microsoft.
October 9th, 2008 at 9:15 am
the branches of fl are too large :)
October 9th, 2008 at 1:07 pm
yup, it should be 45 minutes.
October 9th, 2008 at 9:15 pm
What are you going to do when Silverlight 2.0 RTM comes out? Update all of your examples to work with the new release?
I do not envy that job.
October 10th, 2008 at 12:59 am
Mike, that was a good question. Probably, I don’t have any plan to update my work yet.
Well, I just hope the new version will have the backward compatability. But from my past expereince, it seems impossible.
Anyway, it will great if they can remove the word “beta” in their release and let us have more confidence in using it.
October 12th, 2008 at 9:21 am
You should be fine, but there maybe some breaking changes that you’ve made use of which will require a migration forward on.
It was important to note that the current Beta 2 version of Silverlight is just that, a beta (all conditions of use apply). Breaking changes inside beta’s will at times occur and we do apologise for this, that being said Silverlight 1 will work inside Silverlight 2.
Future releases will be backwards compatible.
-
Scott Barnes
Rich Platforms Product Manager
(Silverlight/WPF) Microsoft.
September 28th, 2009 at 6:49 am
[...] Terence Tsang used Recursion technique to generate a very nice looking tree. It really looks real! [...]
January 29th, 2010 at 12:08 pm
Hullo, I am searching for some info that is something the same from what you have placed here. though this one is not exactly what I’m expecting for, I find your portal absorbing and to state you the truth am quite impressed. I am certain that lot of users see your web site useful and will aid them in some way. I’m going to save your web site so I can check for new posts afterwards. thx and keep up the good work
February 5th, 2010 at 6:55 pm
Im not sure about all the camotion involving farmville. I know one thing for sure if you have alot of free time to kill then it is the game for you :) My husband is taken up with it . Great blog by the way