Infragistics XamRichTextEditor 中的 CommandBinding 错误

Error on CommandBinding in Infragistics XamRichTextEditor

我的 Infragistics 版本是 15.1.20151.2188。

我正在尝试重现 Infragistics Sample Browser 中的示例,它将 Infra-commands 绑定到自定义工具栏中的按钮并将它们链接到 XamRichTextEditor,如下所示:

<ig:XamRichTextEditor AllowDocumentViewSplitting="True" DockPanel.Dock="Bottom" />
<ToolBar DockPanel.Dock="Top">
    <Button Content="F" Width="32" Height="32" Margin="0,0,5,0">
        <ig:Commanding.Command>
            <igPrim:RichTextEditorCommandSource EventName="Click" CommandType="ToggleBoldFormatting" />
        </ig:Commanding.Command>
    </Button>
</ToolBar>

命名空间定义如下:

xmlns:ig="http://schemas.infragistics.com/xaml"  
xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives"

在设计期间,我在 Visual Studio 中收到以下错误(运行时也会发生崩溃):

The specified value cannot be assinged. The following type was expected: 'CommandSource'

这里是截图:

我使用对象浏览器检查了RichTextEditorCommandSource

如您所见,RichTextEditorCommandSource 继承自 CommandSource

我想我缺少参考或类似的东西。有什么建议吗?

解决方案是出于某种原因我不得不重新引用 Infragistics.WPF4.v15.1.dll。我的系统上只安装了一个版本,是的,我在提出问题之前重新启动了 VS 并进行了干净的重建。奇怪。