我尝试将SL 4应用迁移到SL5,并在编译应用时遇到以下错误:
Error 17 The tag 'GoToStateAction' does not exist in XML namespace
'http://schemas.microsoft.com/expression/2010/interactions'.
Error 31 The type 'GoToStateAction' from assembly 'Microsoft.Expression.Interactions' is built with an older version of the Blend SDK, and is not supported in a Silverlight 5 project.
此错误的xaml是: 的xmlns:I = “http://schemas.microsoft.com/expression/2010/interactivity” 的xmlns:EI = “http://schemas.microsoft.com/expression/2010/interactions”
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<ei:GoToStateAction StateName="ShowStatus"/>
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<ei:GoToStateAction StateName="HideStatus"/>
</i:EventTrigger>
</i:Interaction.Triggers>
如何解决此问题?
答案 0 :(得分:2)
想出来:为SL5安装Blend Preview。谢谢。