本文介绍了标记"Interaction.Behaviors"在VS2010中不存在(混合3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2010 xaml编辑器中对Blend 3的交互性名称空间的支持似乎存在问题.我已经安装了以下软件:

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

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

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).

在对象浏览器中,一切似乎都很好.我也可以从代码隐藏处访问Interaction.Behaviours,但是如果我将名称空间xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"放在xaml文件中并尝试使用它,则intellisense为空.

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.

如果我仍然在其中复制内容,则编译器会说:The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'.

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'.

我需要安装Blend 4 RC还是什么?

Do I need to install Blend 4 RC or something?

推荐答案

如果没有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.

这篇关于标记"Interaction.Behaviors"在VS2010中不存在(混合3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:46