【发布时间】:2010-08-12 13:32:31
【问题描述】:
我在一个 Silverlight 项目的团队中工作。这个 silverlight 项目使用 MVVM-light。当我想构建项目时,出现以下两个错误:
错误 1:
“EventTrigger”类型不支持直接内容。
我在此 xaml 代码中收到此错误:
<HyperlinkButton x:Name="HyperlinkButtonSelectAll" Content="Select all" IsTabStop="False" Height="20" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SelectAllPluginsCommand, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</HyperlinkButton>
我在 GalaSoft_MvvmLight_Command 标签上收到此错误。
错误 2:
XML 命名空间“clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity”中的类型“EventTrigger”上不存在属性“_UnknownContent”。
对于这个错误,我没有特定的行号和列号。
然而奇怪的是,我的同事们没有这个问题。即使他们从源代码管理中获取最新版本。但是我有这些错误。我已经尝试删除完整的解决方案并从 sourcesafe 取回,但我不断收到这些错误。
任何帮助将不胜感激。
谢谢,
米歇尔
【问题讨论】:
标签: silverlight xaml compiler-errors mvvm-light