简体   繁体   中英

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 : 替代文字

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM