标签“交互.行为” VS2010 中不存在(Blend 3)

发布于 2024-09-06 03:55:12 字数 570 浏览 2 评论 0原文

VS2010 xaml 编辑器中对 Blend 3 交互命名空间的支持似乎存在问题。我安装了以下内容:

  • VS2010
  • Blend 3 + Blend 3 SDK

我正在尝试编译一个针对 .Net 4 Client Profile 的演示项目,并引用 System.Windows.Interactivity (在 Blend 3 文件夹中)。

在对象浏览器中,一切似乎都很好。我还可以从代码隐藏访问 Interaction.Behaviours,但如果我将命名空间 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 放在 xaml 文件中并尝试使用它,智能感知是空白的。

如果我在那里复制一些东西,编译器会说: XML 命名空间“http://schemas.microsoft.com/expression/2010/interactivity”中不存在标记“Interaction.Behaviors”。

我需要安装 Blend 4 RC 或其他东西吗?

There seems to be a problem with support for the Interactivity namespace of Blend 3 in the VS2010 xaml editor. I have the following installed:

  • VS2010
  • Blend 3 + Blend 3 SDK

I am trying to compile a demo project that is targeted at .Net 4 Client Profile and has a reference to System.Windows.Interactivity (in the Blend 3 folder).

In the object browser everything appears to be fine. I can also access Interaction.Behaviours from code-behind, but if I put the namespace xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" in the xaml file and try to use it, the intellisense is blank.

If I copy something in there anyway, the compiler says:
The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'.

Do I need to install Blend 4 RC or something?

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

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

发布评论

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

评论(6

深府石板幽径 2024-09-13 03:55:12

@TomTom 和所有 SDK 4.0 建议者:

有一个巨大的杀手标准阻止像我这样的许多开发者下载和使用 SDK 4.0,即使它是免费的:它使用 .NET 4.0。

你可能会问.NET 4.0 有什么问题吗?没什么,除了今天(2013-06-13),我们的许多客户仍然没有在他们的服务器上安装它(在客户端上通常没有问题)。因此,如果您开发的软件也应该在服务器上运行,则即使 .NET 4.5 是最先进的,您也被迫使用 .NET 3.5。

@everybody

有人能解决安德烈·卢斯最初的问题吗?如果引用 Blend SDK 3.5 for WPF 的“System.Windows.Interactivity.dll”,XAML 中的命名空间导入在 VS2010 中必须是什么样子? (或者在 3.5 中的命名不同?)

附录:

解决方案是:

xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"

@TomTom and all SDK 4.0 suggestors:

There is a huge killer criteria that prevents many develpers like me from downloading and using SDK 4.0 even if it is for free: It uses .NET 4.0.

You may ask what's wrong with .NET 4.0? Nothing, except as for today (2013-06-13) still many of our customers don't have it installed on their servers (on the clients it's usually no problem). So if you develop software that should also run on servers, you are forced to use .NET 3.5 even if .NET 4.5 would be state-of-the-art.

@everybody

Does anybody have a solution to Andre Luus original question? How must the namespace import in XAML look like in VS2010 if "System.Windows.Interactivity.dll" of Blend SDK 3.5 for WPF is referenced? (Or was <i:Interaction.Behaviors> named differently in 3.5?)

Addendum:

The solution is:

xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
携余温的黄昏 2024-09-13 03:55:12

adam 的答案链接到 silverlight 的 Blend SDK 4.0,如果您在 WPF 程序中遇到此问题,您应该安装 改为此版本

The answer from adam linked to the Blend SDK 4.0 for silverlight, if you have this problem in WPF programs you should install this version instead.

娇妻 2024-09-13 03:55:12

如果您没有 Blend 4,则只需安装 Blend 4 SDK 本身获取当前行为程序集。

If you don't have Blend 4, you can just install the Blend 4 SDK by itself to get the current behavior assemblies.

不语却知心 2024-09-13 03:55:12

Behavior 和 MouseDragElementBehavior 属于 Microsoft.Expression.Interaction.dll 和 System.Windows.Interactivity.dll,请添加对这两个程序集的引用,然后重建您的解决方案。

Behavior and MouseDragElementBehavior belong to Microsoft.Expression.Interaction.dll and System.Windows.Interactivity.dll, please add references to those two assemblies and then rebuild your solution.

じ违心 2024-09-13 03:55:12

获取 Blend 4 - 免费升级。可从 Microsoft 下载(获取试用版,如果安装了 Blend 3,它将在安装后自动激活)。

Get Blend 4 - free upgrade for you. Available for download at Microsoft (get the trial, it will auto-activate after install if Blend 3 is installed).

绝不放开 2024-09-13 03:55:12

安装 JetBrains 维护的 NuGet 包 Microsoft Expression Blend SDK 将解决该问题。

Install-Package JetBrains.System.Windows.Interactivity

Installing the NuGet package Microsoft Expression Blend SDK maintained by JetBrains will solve the issue.

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