开发者

Error Adorner in a Scrollviewer

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 AdornerDecorato开发者_C百科r.


Ok so the solution to this problem is the same solution from the question I referenced in my comment above.

You need to retemplate the ScrollViewer and add an AdornerDecorator to the template.

Something to note in general about Adorners ... if I have a problem with them, the solution tends to be wrapping the element in an AdornerDecorator, it's not always going to be the solution, it's worth a first look as it might be.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜