The tag 'Interaction.Behaviors' does not exist in VS2010 (Blend 3)

耗尽温柔 提交于 2019-11-30 09:02:02

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

@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"

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.

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.

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

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

Install-Package JetBrains.System.Windows.Interactivity
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!