RenegadeAndy
RenegadeAndy

Reputation: 5690

Expression blend convert example from Silverlight into WPF

Hey! I was looking at a cool layout example in particular the V3FluidLayout.xaml found inside this set of examples : http://gallery.expression.microsoft.com/en-us/DynamicLayoutTrans

Anyhow - this appears to be a silverlight app - it runs within a browser. I am trying to pull the V3FluidLayout example into a WPF app - and struggling.

I "add an existing item" pulling the .xaml file into my project. When it goes to compile it, the following errors are found : alt text

Are these artifacts Silverlight? The following is the xaml code within the V3FluidLayout.xaml file

http://pastebin.com/h9ujUax6

Can anybody help me pin why this is not working - and how I can convert that xaml code to work inside my wpf app.

Thanks

Andy

Upvotes: 0

Views: 860

Answers (2)

justin.m.chase
justin.m.chase

Reputation: 13685

Add references to the interactivity assemblies found here: C:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries

You need to install the Blend SDK to get them, the come with Blend also.

Upvotes: 0

Alex Paven
Alex Paven

Reputation: 5549

Basically (and from only a quick glance), you'll need a reference to the WPF versions of System.Windows.Interactivity and Microsoft.Expression.Interactions - they are part of Blend. Actually look at the references of that project and find the exact same references, only for WPF.

It looks like they contain pretty much the same classes for both WPF and Silverlight, so I think it should work in the end.

Upvotes: 1

Related Questions