无法加载文件或程序集Microsoft.Expression.Interactions和GalaSoft.MvvmLight.Extras.WPF4 [英] Could not load file or assembly Microsoft.Expression.Interactions and GalaSoft.MvvmLight.Extras.WPF4

查看:661
本文介绍了无法加载文件或程序集Microsoft.Expression.Interactions和GalaSoft.MvvmLight.Extras.WPF4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Prism 4时,我面临未知的问题.我们以MVVM模式实施业务解决方案.为此,我使用了

I am facing unknown problem while using Prism 4. We implement business solution in MVVM pattern. For that I have used

 1. Microsoft.Expression.Interactions

 2. System.Windows.Interactivity

 3. GalaSoft.MvvmLight.Extras.WPF4

用于Interaction.Triggers,CallMethodAction和EventToCommand.

for Interaction.Triggers, CallMethodAction and EventToCommand.

<SWI:Interaction.Triggers>
    <SWI:EventTrigger SourceObject="{Binding ElementName=txtName}" EventName="GotFocus">
        <MEI:CallMethodAction TargetObject="{Binding Path=DataContext,ElementName=txtName}" MethodName="txtName_GotFocus"></MEI:CallMethodAction>
    </SWI:EventTrigger>
    <SWI:EventTrigger SourceObject="{Binding ElementName=txtName}" EventName="KeyUp">
        <GMEWCMD:EventToCommand   Command="{Binding Path=DataContext.cmdtxtNameKeyUpEvent,ElementName=txtName}" PassEventArgsToCommand="True">
        </GMEWCMD:EventToCommand>
    </SWI:EventTrigger>
</SWI:Interaction.Triggers>

一切正常,但是现在我们需要使整个系统松散耦合,我们选择棱镜4.我们已经实现了这一点,但是上面的代码产生了以下问题.

Everything is working fine but now we required to make whole system loosely couple we choose prism 4. We already achieved this but above code create following problem as below.

无法加载文件或程序集"Microsoft.Expression.Interactions,PublicKeyToken = 31bf3856ad364e35"或其依赖项之一.系统找不到指定的文件.

Could not load file or assembly 'Microsoft.Expression.Interactions, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

如果我在上面的代码中添加注释,则一切正常.我不知道是什么问题. PRISM 4是否不支持上述程序集?

If I comment above code everything is working fine. I don't know what an issue. Does PRISM 4 not support above assemblies?

请帮助我们摆脱这个问题.

Please help us to get rid from this problem.

谢谢

推荐答案

当我在属于模块的视图中同时引用Microsoft.Expression.Interactions和System.Windows.Interactivity时,这通常会发生在我身上,但是我无法还将那些引用添加到充当外壳的项目中.

This commonly happens to me when I reference both Microsoft.Expression.Interactions and System.Windows.Interactivity in a view that belongs to a module, but I fail to also add those references to the project that acts as the shell.

这篇关于无法加载文件或程序集Microsoft.Expression.Interactions和GalaSoft.MvvmLight.Extras.WPF4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆