Bryant Likes's Blog

It's all about WebData

Recent Posts

Tags

News


  • Windows Live Alerts
    View Bryant Likes's profile on LinkedIn

    Me

    The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Community

Email Notifications

Archives

WPF/E Reflections Tip

If you're doing WPF/E development, you should check out the WPF/E Developer Content Blog. On that blog there is a great post that explains how to add cool looking reflections using WPF/E. I've been doing a lot of WPF/E reflections lately and just wanted to a one tip which has helped me alot. Instead of adding the reflection to an Image, wrap your image (or whatever you're displaying) in another Canvas and then add a third canvas for your reflection. You can apply the scale transform and opacity mask to the third canvas and get the cool effect. The reason to do this is that you can add whatever you want to the top canvas and if you duplicate it in the bottom canvas you will get a full blown reflection. For instance see the below WPF/E (sorry, embedded WPF/E only shows up on the site, not the feed.)

Note: I'm displaying this inline in the post using a new CSModule that I wrote. If you're interested in it let me know and I'll document and release it.

This is a simple tip, but it has saved me a lot of time when I'm creating a reflection on a bunch of stuff....

Update: I upgraded my CSModule to include a link to a WPF/E loader page so that you can just click that if you're viewing my blog from a feed reader.

 Update2: Doh! I forgot to add one line of code that did the actual replacement in the feeds. Now it is really working. :)

Posted: Jan 17 2007, 03:30 PM by bryantlikes | with 1 comment(s)
Filed under:

Comments

Bryant Likes's Blog said:

While working on some WPF/E stuff for a side project of mine, I came across this post by Karsten Januszewski

# January 18, 2007 11:13 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)