The name “Interaction” does not exist in the namespace “http://schemas.microsoft.com/expression/2010/interactivity”

后端 未结 9 2197
花落未央
花落未央 2021-02-02 06:28

I\'ve used the System.Windows.Interactivity DLL in several projects without any problem. Now in my latest project I can\'t get it to work. I always get the following error:

9条回答
  •  轮回少年
    2021-02-02 06:53

    I had the same problem. What I did was:

    1. Remove Microsoft.Expression.Interactions and System.Windows.Interactivity from the project in Visual Studio while keeping the xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" namespace.
    2. Open the same project in Blend.
    3. Add the correct .net versions of Microsoft.Expression.Interactions and System.Windows.Interactivity back in Blend (in my case it was 4.5).

提交回复
热议问题