5

I'm trying to ensure that my error adorners don't get clipped by my scrollviewer's bounds. I have a series of textboxes that are at the edge of a fixed width scrollviewer (no horizontal scrolling, only vertical). I then have adorners that flag textboxes with errors.

The problem is that the adorners get clipped at the edge of the scrollviewer.

Any ideas?

*Note: I have tried wrapping everything in AdornerDecorator.

4

1 に答える 1

4

さて、この問題の解決策は、上記のコメントで参照した質問と同じ解決策です。

ScrollViewerを再テンプレート化し、 AdornerDecoratorをテンプレートに追加する必要があります。

Adornersについて一般的に注意することがあります...私がそれらに問題がある場合、解決策はAdornerDecoratorで要素をラップする傾向があります、それは常に解決策になるとは限りません、それはそうであるかもしれないので一見の価値があります。

于 2010-10-07T18:50:32.610 に答える