我一直在尋找一個解決方案,但找不到任何。無法從System.Windows.Input加載GestureEventArgs
情況是,我有一個自定義控件,它使用GestureEventArgs在「Tap」事件上應用一些效果。 GestureEventArgs
來自System.Windows.Input
命名空間。順便說一句,這是一個WP7(7.1)項目。如果我在其他WP7(7.1)項目中使用這個控件,我的visual studio 2010就會崩潰。沒有錯誤或例外。
當我在Blend打開XAML文件我得到以下錯誤:
TypeLoadException: Could not load type "System.Windows.Input.GestureEventArgs" from assembly "System.Windows.Input, version= 2.0.5.0, Culture = neutral, PublicKeyToken=7cec85d7bea7798e"
,我看到的是,在我的otherproject的Microsoft.Phone.Controls
命名空間,也有GestureEventArgs
的唯一原因。但是沒有關於歧義的抱怨。
有人在這種情況下? 一個修復會很棒!