Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The tag 'Interaction.Behaviors' does not exist in VS2010 (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

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?

like image 976
Andre Luus Avatar asked Jun 17 '10 07:06

Andre Luus


2 Answers

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

like image 89
Adam Kinney Avatar answered Oct 31 '22 00:10

Adam Kinney


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.

like image 24
sergiol Avatar answered Oct 31 '22 02:10

sergiol