My first code camp is over and done with. I got a chance to meet a lot of great people who are as interested and enthusiastic about Silverlight as I am. As promised here are the presentation and the code from my presentation on Saturday. A couple notes: the presentation is saved as a pptx, [...]
Monthly Archives: March 2008
Atlanta Code Camp 2008
This weekend the Atlanta Code Camp 2008 is being held. It should be a lot of fun and very interesting. This year there are 8 different track (see below) with some really great/interesting presentations scheduled. For Silverlight Shawn Wildermuth, Steve Porter, Keith Rome, and myself will be presenting. I will be giving the Introduction to [...]
Data visualizations
Today I recieved an e-mail to The Best Tools for Visualization. For the past five years I have worked in a world where there is really only one way to display data, THE GRID. To be exact, the .NET DataGrid. This control alone has employed many developers and has allowed them to make a living [...]
Positioning in Silverlight 2
A common mistake in Silverlight is for people to use the Canvas.Left and Canvas.Top property when positioning elements. In Silverlight 2, there is a push towards a relative positioning model. This makes the Margin, HorizontalAlignment, and VerticalAlignment very important (for all you CSS people the Margin starts on the Left and goes clockwise). So, how [...]
Easing animations in Expression Blend
Here is how to add easing to your animation in Expression Blend. IMHO adding easing to animations really makes your product look polished. I have been trying to write an Animation system for Silverlight 2, much like the Tweening libraries for Flash and Javascript. However, when I found this today, there may be hope for [...]
Visual Studio 2008 theme
When I upgraded to Visual Studio 2008 I stumbled on Jon Galloway’s post about Ten Tips for a Happy Upgrade to Visual Studio 2008 (Release). The best, very best, tip was changing the theme. The new theme I’m using has a dark gray background. At at first this was a novelty and it was making [...]
Set the source for an image from C#
In Silverlight, there are two ways to set the source for an image. image.SetValue(Image.SourceProperty,value); image.Source = new BitmapImage(new Uri(value, UriKind.Absolute)); For the second option you will need to include the following namespace: using System.Windows.Media.Imaging;.
Animation engine for Silverlight
Just added Animations for Width and Height. Check out the code and the example. For more information here is the initial post. I will add more documentation after getting a few more animations in the engine. Known issues: After the animation of Width, the width property doesn’t get set. Same with Height.
Reusing a Storyboard
It is possible to reuse a storyboard. Make sure to stop the storyboard before you set a new target property. Thanks Tom for pointing this out. XAML <Canvas x:Name=”LayoutRoot” Background=”White”> <Button Height=”20″ Width=”120″ Canvas.Left=”0″ Canvas.Top=”0″ Content=”Button” x:Name=”btnTest”/> <Rectangle x:Name=”Fred” Height=”30″ Width=”30″ Fill=”Aquamarine” Canvas.Top=”50″/> <Rectangle x:Name=”Wilma” Height=”30″ Width=”30″ Fill=”OrangeRed” Canvas.Top=”150″/> </Canvas> C# void Page_Loaded(object [...]
Animate Silverlight 2 object from 1 line of code
In a previous post about how to create animations dynamically, I showed how to add StoryBoards from C#. I have extracted this logic into a class called SLAnimator. This allows you to do an animation from one line code, and a nice thing about this approach is it still uses the built in Silverlight Animation [...]


