【问题标题】:IBehavior and Caliburn Micro, referencesIBehavior 和 Caliburn Micro,参考资料
【发布时间】:2014-07-23 20:11:55
【问题描述】:

我正在构建 Windows 通用应用程序(适用于 Windows Phone)并尝试使用行为。该应用使用 Caliburn micro 2.0 框架。

行为是这样的:

public class ProgressIndicatorBehavior : DependencyObject, IBehavior
{
   ...
}

在我看来,我使用这样的行为:

xmlns:i="using:Microsoft.Xaml.Interactivity"

<i:Interaction.Behaviors>
    <behaviors:ProgressIndicatorBehavior IsVisible="{Binding IsLoading}/>
</i:Interaction.Behaviors>

当我尝试构建此应用时,我收到以下错误:

错误 2 类型“Microsoft.Xaml.Interactivity.IBehavior”存在于 'c:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\BehaviorsXamlSDKManaged\12.0\References\CommonConfiguration\Neutral\Microsoft.Xaml.Interactivity.dll' 和 'c:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\BehaviorsXamlSDKNative\12.0\References\CommonConfiguration\Neutral\Microsoft.Xaml.Interactivity.winmd' ...

我应该如何设置应用引用,现在我已经添加了 Behaviors SDK、Microsoft.Xaml.Interactions 和 Microsoft.Xaml.Interactivity。

【问题讨论】:

    标签: windows-runtime windows-store-apps caliburn.micro behavior win-universal-app


    【解决方案1】:

    完全略过您的问题。 2 Microsoft.XAML.* 文件是行为。删除对行为 SDK 的引用,你应该很好。!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-29
      • 2012-10-24
      • 2011-02-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多