gpt4 book ai didi

wpf - 扩展的 WPF 工具包 - 使用 RichTextBoxFormatBar

转载 作者:行者123 更新时间:2023-12-03 18:13:10 25 4
gpt4 key购买 nike

我一直在尝试使用扩展 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。

最佳答案

我自己愚蠢的错。

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

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

关于wpf - 扩展的 WPF 工具包 - 使用 RichTextBoxFormatBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10188373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com