4

RichTextBoxFormatBar を利用できるように Extended WPF Toolkit を使用しようとしましたが、円を描いているようです。ここや他のサイトでいくつかの例を試してみましたが、同じエラーメッセージが表示され続けます:

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 です。

4

3 に答える 3

14

自分の愚かなせいです。

ExtendedWPFToolkit_Binaries.zipをダウンロードした後、それを右クリックして「プロパティ」を選択し、「ブロック解除」を選択する必要があるという指示に従ってダウンロードしたときに、DLLのブロックを解除するのを忘れていました。

この投稿が、同じ過ちを犯した他の誰かに役立つことを願っています。

于 2012-04-17T14:18:41.577 に答える
1

これと同じことが私にも起こりましたが、最終的には、dll またはソリューションがローカル コンピューターではなくネットワーク上に保存されていることが原因であることがわかりました。両方をローカルコンピューターに移動すると、動作し始めました。

于 2012-07-27T21:39:38.903 に答える