我尝试将 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>
如何解决这个问题?