This project has moved and is read-only. For the latest updates, please go here.

Problem using RichTextBoxFormatBar

Apr 17, 2012 at 11:49 AM

I've been trying to use the RichTextBoxFormatBar but I can't get the project to compile and I get these two errors: 

"The attachable property 'FormatBar' was not found in type 'RichTextBoxFormatBarManager"

"The type 'toolkit:RichTextBoxFormatBar" was not found. Verify that you are not missing an assembley reference and that all referenced assemblies have been built"

I'm using the WPFToolkit.Extended.dll for .Net 4 and have a reference to it in my project. The code is as follows:

  <UserControl x:Class="TestWPF_Richtextbox.UserControl1"
             d:DesignHeight="300" d:DesignWidth="300">
                <toolkit:RichTextBoxFormatBar />


I'd be very grateful for any help, this is driving me up the wall!

Apr 17, 2012 at 2:41 PM

On my end, everything works great.


I know you said that you have added a reference to the WPFToolkit.Extended.dll assembly in your project, but if you look at your References folder, do you see a yellow triangle next to the reference to "WPFToolkit.Extended"?  If it is the case, you have a missing assembly.  Try to remove the assembly from your project and add it again.

Apr 17, 2012 at 2:49 PM

Thanks for your response.

The References folder contains WPFToolkit.Extended and there are no warning triangles or anything of the like. I've tried re-starting VS and removing and re-adding the reference but it doesn't make any difference.

Apr 17, 2012 at 3:02 PM

I've also asked a colleague to create a project and have sent him the DLL to reference but he has the same problem. I'm using V. of the DLL.

Apr 17, 2012 at 3:15 PM

Sorted - my own stupid fault. I'd forgot to unblock the zip file when I downloaded it (as per your instructions...).

Hopefully this post will stop anyone else making the same daft mistake!