表达式混合将示例从 Silverlight 转换为 WPF

发布于 2024-09-24 09:25:06 字数 688 浏览 3 评论 0原文

嘿!我正在查看一个很酷的布局示例,特别是在这组示例中找到的 V3FluidLayout.xaml : http://gallery.expression.microsoft.com/en-us/DynamicLayoutTrans

无论如何 - 这似乎是一个 silverlight 应用程序 - 它在浏览器中运行。我正在尝试将 V3FluidLayout 示例拉入 WPF 应用程序中 - 但很挣扎。

我“添加现有项目”将 .xaml 文件拉入我的项目中。当它进行编译时,发现以下错误: alt text

这些工件是 Silverlight 吗?以下是 V3FluidLayout.xaml 文件中的 xaml 代码

http://pastebin.com/h9ujUax6

任何人都可以帮忙我解释为什么这不起作用 - 以及如何将该 xaml 代码转换为在我的 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

执妄 2024-10-01 09:25:06

基本上(仅快速浏览一下),您将需要对 System.Windows.Interactivity 和 Microsoft.Expression.Interactions 的 WPF 版本的引用 - 它们是 Blend 的一部分。实际上查看该项目的引用并找到完全相同的引用,仅适用于 WPF。

看起来它们对于 WPF 和 Silverlight 都包含几乎相同的类,所以我认为它最终应该可以工作。

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.

清风挽心 2024-10-01 09:25:06

添加对此处找到的交互程序集的引用:
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries

您需要安装 Blend SDK 才能获取它们,Blend 也附带了它们。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文