C# Infragistics XamRichTextEditor中的CommandBinding错误

C# Infragistics XamRichTextEditor中的CommandBinding错误,c#,wpf,infragistics,C#,Wpf,Infragistics,我的基础设施版本是15.1.20151.2188 我试图复制一个示例,从中可以将Infra命令绑定到自定义工具栏中的按钮,并将它们链接到XamRichTextEditor,如下所示: <ig:XamRichTextEditor AllowDocumentViewSplitting="True" DockPanel.Dock="Bottom" /> <ToolBar DockPanel.Dock="Top"> <Button Content="F" Width

我的基础设施版本是15.1.20151.2188

我试图复制一个示例,从中可以将Infra命令绑定到自定义工具栏中的按钮,并将它们链接到
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>
在设计期间,我在Visual Studio中遇到以下错误(运行时也发生崩溃):

无法分配指定的值。应为以下类型:“CommandSource”

以下是截图:

我使用对象浏览器选中了
RichTextEditorCommandSource

如您所见,
RichTextEditorCommandSource
继承自
CommandSource


我想我错过了一个参考资料或类似的东西。有什么建议吗?

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

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