1

xaml:

<TextBlock Text="SampleText">
    <TextBlock.TextDecorations>
        <MultiBinding Converter="{StaticResource sampleMultiValueConverter}">
            <Binding/>
            <Binding/>
        </MultiBinding>
    </TextBlock.TextDecorations>
</TextBlock>

コンバータ:

public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
    return TextDecorations.Underline;
}

vs2010 ではすべて正常に動作し、実行中のアプリと同じようにデザイナーに下線付きのテキストが表示されます。現在取り組んでいるプロジェクトで作成したとき、Blend は例外を示しました: http://s19.postimage.org/3wdr4htc3/Blend_Error.png

この動作を示すサンプル プロジェクトhttp://goo.gl/lnZ1Tを作成しましたが、このプロジェクトでは、Blend はエラーのみを表示し、例外は表示しません。

私は何か間違ったことをしていますか、それともブレンドの問題ですか? 回避策はありますか?

4

0 に答える 0