扩展的 WPF 工具包 - 使用 RichTextBoxFormatBar [英] Extended WPF Toolkit - using the RichTextBoxFormatBar

查看:60
本文介绍了扩展的 WPF 工具包 - 使用 RichTextBoxFormatBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用扩展的 WPF 工具包,以便我可以使用 RichTextBoxFormatBar,但我似乎在绕圈子.尽管在这里和其他网站上尝试了几个示例,但我仍然收到相同的错误消息:

I've been trying to use the Extended WPF Toolkit so that I can make use of the RichTextBoxFormatBar but I seem to be going round in cirlces. Despite trying several examples on here and other sites I keep getting the same error messages:

在类型RichTextBoxFormatBarManager"中找不到可附加的属性FormatBar".

未找到类型toolkit:RichTextBoxFormatBar".验证您没有缺少程序集引用并且所有引用的程序集都已构建.

我是 WPF 的新手,所以我知道这是我没有注意到的东西而不是错误,谁能告诉我我做错了什么并保持理智?

I'm new to WPF so I'm know it's something I'm not picking up on rather than a bug, can anyone tell me what I'm doing wrong and save my sanity?

<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"><网格><RichTextBox><工具包:RichTextBoxFormatBarManager.FormatBar><工具包:RichTextBoxFormatBar/></toolkit:RichTextBoxFormatBarManager.FormatBar></RichTextBox></网格></UserControl>

库和项目都是 .Net 4.WPFToolkit.Extended.dll 的版本是 V.1.6.0.0.

Both the library and the project are .Net 4. The version of the WPFToolkit.Extended.dll is V.1.6.0.0.

推荐答案

我自己的愚蠢错误.

我在按照说明下载DLL时忘记取消阻止它也就是说,在下载了 ExtendedWPFToolkit_Binaries.zip 后,您应该右键单击它,选择属性",然后选择取消阻止".

I'd forgotten to unblock the DLL when I downloaded it as per the instructions which say that after downloading the ExtendedWPFToolkit_Binaries.zip you should then right click on it, select "Properties" and then "Unblock".

希望这篇文章能帮助其他犯过同样错误的人.

Hopefully this post will help someone else who has made the same mistake.

这篇关于扩展的 WPF 工具包 - 使用 RichTextBoxFormatBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆