我一直在尝试使用扩展的WPF工具包,以便我可以使用RichTextBoxFormatBar,但我似乎要绕圈走。尽管在这里尝试了几个例子和其他网站我不断收到同样的错误消息:扩展的WPF工具包 - 使用RichTextBoxFormatBar
The attachable property 'FormatBar' was not found in type 'RichTextBoxFormatBarManager'.
The type 'toolkit:RichTextBoxFormatBar' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
我新的WPF所以我知道这件事情我不捡而不是一个错误,谁能告诉我我做错了什么,并保存我的理智?
<UserControl x:Class="TestWPF_Richtextbox.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <RichTextBox> <toolkit:RichTextBoxFormatBarManager.FormatBar> <toolkit:RichTextBoxFormatBar /> </toolkit:RichTextBoxFormatBarManager.FormatBar> </RichTextBox> </Grid> </UserControl>
编辑:无论是库和项目是.NET 4的WPFToolkit.Extended.dll的版本是V.1.6.0.0。
你正在使用哪一个.NET框架? – gliderkite 2012-04-17 13:24:47
4.0 - 图书馆也是4.0。 – GrandMasterFlush 2012-04-17 13:42:06
我想你已经在你的项目中引用了WPFToolkit.Extended.dll,对吧? – gliderkite 2012-04-17 13:54:40