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

后端 未结 9 2218
花落未央
花落未央 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条回答
  •  Happy的楠姐
    2021-02-02 06:38

    I would like to update this question as I found a very easy solution which I'm uncertain was given at the time when this question was initialy raised. Now days you can download a nuget package which will, automatically, fit itself into your solution.

    The package is called "Expression.Blend.Sdk" (by Microsoft) and it contains the version of System.Windows.Interactivity which includes the a version of InvokeCommandAction which has the Command property.

    It's easy to belive that you should install "Blend.Interactivity.Wpf" (by Microsoft) but this nuget package contains another implmentation (I would guess) that doesn't provide a InvokeCommandAction which has the Command property.

提交回复
热议问题