Tuesday 12 July 2011

How to create Inner Shadow Effects in WPF and Silverlight

A new experience for me this week: I was handed a Photoshop file containing the new UI design for the app I’m currently working on, and asked to implement it in WPF. Easy, I thought: Expression Blend has a Photoshop Import feature.

Not so fast!

Whilst Blend does a pretty good job of importing simple Photoshop files, it struggles when asked to convert the little flourishes with which designers like to top off their masterpieces. Like inner shadows.

Thus the inspiration for another first: my first ever Code Project article, Creating Inner Shadow Effects for WPF and Silverlight, which went live this afternoon.

image

If you’ve ever wanted to render something like this in WPF, go read the article.