Hacky way of doing changing bitmaps on a button in WPF

I came up with a hacky way of doing “hover” and “press” buttons in WPF recently. There are a couple of nice examples on the web, but I was looking for a way to do it purely through XAML. If there’s a nicer way to do it through XAML (or if there are big drawbacks…

3

Visual Studio, Expression Blend, and WPF

I’ve been doing a bit of prototyping work with the aforementioned products, and thought that since Blend has an RC1 release, it was a good time to share a few thoughts… The short story is that both VS and blend are pretty good tools for building in WPF, but together, they’re very impressive. Visual studio…

2

WPF Tip: Names can't have ":" in them...

If you are doing storyboard-based animation, the animation is hooked up to a specific element through a unique id. You write code something like this: element.Name = “Fred”;window.RegisterName(element.Name, element); The second call establishes the relationship between the name and the object. If you’re writing cod where there are multiple elements, you need to create unique…

2

Taking snapshots of WPF animation

I’ve been playing around with WPF animation, and ended up wanting to take a snapshot of an animation at a specific place. Specifically, I have a canvas that has some pictures on it that are moving, and I want to be able to save a bitmap of what it looks like at a specific time….

2