我一直在嘗試使用擴展的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