Welcome to MSDN Blogs Sign in | Join | Help

Lester's WPF blog


Simple, easy & beautiful

News

WPF/E 3D(like) photo app

Often times when I go through the WPF forums, I see people getting confused with WPF and WPF/E..... (don’t miss the ‘E’)..   One of things that is on many of our minds is ‘why not xbap’. Chad summarizes the difference in his blog pretty well.

WPF/E Applications

·         Are cross-platform ready (Mac OS X and Windows)

·         Do not require the client to have the .NET 3.0 runtime. Instead, WPF/E applications run within a browser plugin.

·         Do not support code-behind

·         Rely on JavaScript


XBAPs

·         Require the client to have the .NET 3.0 runtime components installed.

·         Are not cross-platform enabled. They will only run on Windows machines.

·         Support code-behind

·         Must run within IE (or use the IETab plugin for Firefox)”

 

I decided to get my hands dirty with WPF/E and its pretty simple. What you really need to get going is:

·         WPF/E SDK

·         WPF/E template for VS (comes with the SDK but needs to be installed)

·         Expression Blend is nice to have.

 

No 3D support yet but you can get effects like the above pretty easily. 

Code is attached :)

 

Share this post
Posted: Friday, February 16, 2007 10:49 PM by llester
Attachment(s): WPFEJSApplication3.zip

Comments

Chad Campbell said:

Nice application.  This looks VERY nice.

# February 16, 2007 7:05 PM

ryanstewart said:

Badass dude! Well done.

# February 17, 2007 1:30 AM

Michael Schwarz said:

Great work,... go on!  ;)

# February 17, 2007 4:23 AM

Mike Harsh's Blog said:

Lester Lobo has created a WPF/E photo viewer with a nice reflection effect. Lester didn't host his sample

# February 17, 2007 8:00 PM

Tiernans Comms Closet said:

I had a question of "how do i make the photo gallery of my site look cool?" Well, check this out ! Works

# February 19, 2007 12:38 PM

Matias said:

You said it was nice to have expression Blend installed to develop for WPF/e, but I'm having quiete a lot of problems making Blend's XAMLs to work in the sandbox.

Is there any way I can use Expression Blend to generate XAML WPF/e compatible?

Thanks~

# February 26, 2007 1:47 PM

llester said:

for now you need to be aware of wahts present in wpf/e and then manipulate the xaml to look better in blend. My approach is basically create the starting xaml in VS and the paste it in Blend; make a few simple modifications like translation and so on.

# February 27, 2007 12:49 PM

Arun Mahendrakar said:

Lester,

This is really nice but I had one question.

I modified your code to have only the center rectangle to display the image (I removed the left and the right rectanges). Now how do I stack images one behind another and when I click on any of the images behind the first one it should appear in the front. Something like this is already made in showusyourwow.com.

Thanks for any help.

Arun

# March 8, 2007 11:48 AM

llester said:

this would require some animation triggers... i am sure its possible in WPF.... try posting your question on the WPF forums :)

# March 9, 2007 10:24 AM
New Comments to this post are disabled
Page view tracker