This sample is requested by unruledboy couple weeks ago. He asked if I could implement a application similar to the Flickr mini image gallery. Although the logic is very simple, it provides a very nice and comfortable effect.
Comparison
Flash implementation: 1 hour
Silverlight implementation: 1 hour 30 minutes (Implemented First)
What’s the difference?
- frame rate per second: frameRate [AS3] vs MaxFrameRate [C#]
Source codes
Flickr Image Gallery [Flash 9, AS3] (115.9 KiB, 1,892 hits)
Flickr Image Gallery [Silverlight 2, C#] (154.8 KiB, 2,575 hits)
Flash
Silverlight
frame rate per second: frameRate [AS3] vs MaxFrameRate [C#]
In a loosely compassion, Flash Animation is considered as Frame Based while Silverlight Animation is considered as Time Based. Nevertheless, it’s still possible to change the frame rate per second (fps) for both of the technology.
// AS3 // Change the Frame Rate stage.frameRate = 24;
The default frame rate for Silverlight is 60. (I have no idea why the default value is so high.) Most of the time, you have to set it into a smaller value. Very often, I will set it to 24 fps.
// C# // Change the Frame Rate App.Current.Host.Settings.MaxFrameRate = 24;

October 20th, 2008 at 11:36 am
Hi, I has been wondering day by day, whether you forgot the voices :)
the sl random seems not so random at all, there are 9 pics, it duplicates several times from 4 to 8 before hitting the rest.
October 20th, 2008 at 1:27 pm
unruledboy, sorry for the delay.
By the way, the random works fine for me.
October 20th, 2008 at 2:17 pm
mmmm, as what random indicates, it randoms :)
in my test, for 2 times, the random got stuck to a specific number, seems no ending, so I have to stop it and run again.
March 8th, 2009 at 6:45 pm
[...] So sánh Animation tạo bởi Flash và SilverLight [...]
May 2nd, 2009 at 2:51 am
Doesn’t it take up a lot of time to keep your blog so interesting ?
September 21st, 2009 at 6:03 am
Hello,
Interesting solution but what is the idea with the BorderCornerRadius. It appear to me that it has no effect?
John Johansson