Articles about Silverlight’

Mar 12, 2008

Programmatic drawing with Silverlight 2 Part 3: Simple Animation

Posted by in Uncategorized 6 comments

This example shows you how you can make a simple line animation in Silverlight 2. There isn’t much documentation about this yet, so it took some figuring out on how to do this correctly. Basically these are the steps to create an animation: Create a Storyboard object Set the Storyboard’s Duration property Create a DoubleAnimation [...]


Mar 4, 2008

Silverlight 2 Beta 1 C# Truchet Tiling

Posted by in Uncategorized 4 comments

Truchet Tiling is an easy way of creating random patterns. See what it looks like here. using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace Truchet3 { public partial class Page : UserControl { public Page() { InitializeComponent(); drawTiles(40, Colors.Black); } private void [...]


Mar 3, 2008

Programmatic drawing with Silverlight Part 2: C#

Posted by in Uncategorized 6 comments

In one of my previous posts I explored how programmatic drawing with Silverlight 1.0/JavaScript worked. It was done by constructing a XAML string and inserting it into the XAML hierarchy. Not a nice way of doing things, imho. Fortunately Silverlight 1.1 alpha offers the possibility to use C#. This way there’s no need to construct [...]


Feb 25, 2008

Tweening Silverlight with JSTweener

Posted by in Uncategorized 5 comments

I do most of my ActionScript tweening with the easy-to-use Tweener class. Tweener has been ported to JavaScript so that means it can be used with Silverlight 1.0. This port is called JSTweener and its syntax is identical with Tweener for ActionScript. The most basic tweening example looks like this: JSTweener.addTween( myObject, { x: 30, [...]


Feb 20, 2008

3D Silverlight 1.0: Simple Collada parser

Posted by in 3D 5 comments

A while ago I made a very simple Collada parser that was written in JavaScript and drew on a HTML 5 <canvas>. Silverlight 1.0 also makes use of JavaScript so converting it seemed like a good excercise. You can see it here. Fortunately I didn’t have to change much. Only the way in which the [...]


Feb 19, 2008

Programmatic drawing with Silverlight

Posted by in Uncategorized No comments

I’ve finally set myself to doing something with Microsoft’s Silverlight. After reading some of the basic stuff I have to say it looks promising. I can’t wait for C# support though, JavaScript is making my life miserable again . I’ve taken a code sample (written in BASIC) from and old book and converted it to [...]