2012-07-16 48 views
0

我有適用於MVVMLight的SL4應用程序。我把它遷移到SL 5和編譯應用程序時,得到了以下錯誤:當移植到SL5的v4時,EventToCommand不起作用

標籤「EventToCommand」不存在XML命名空間存在 「CLR的命名空間:GalaSoft.MvvmLight.Command;裝配= GalaSoft.MvvmLight.SL5

此錯誤的XAML是:

xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.SL5" 

<i:Interaction.Triggers> 
    <i:EventTrigger EventName="MouseLeftButtonUp"> 
     <cmd:EventToCommand Command="{Binding ResetPasswordCommand,Mode=OneWay}"            
     MustToggleIsEnabledValue="True" /> 
    </i:EventTrigger> 
</i:Interaction.Triggers> 

相當混亂。爲新平臺更新所有組件。如何解決這個問題?

回答

1

想象一下:應該使用assembly = GalaSoft.MvvmLight.Extras.SL5而不是Assembly = GalaSoft.MvvmLight.SL5。 謝謝。

相關問題