Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using more than 144 adorners

Tags:

wpf

adorner

It appears that the maximum number of adorners that work without any breakage is 144.

I have a ScrollView with a bunch of objects, and many of them come with adorners. The first 144 adorners are positioned correctly, but the rest are not. Note that it is an exceptional situation when there are so many; usually there are exactly zero adorners. Nevertheless, I'd like this to work properly even on that exceptional occasion.

Leaving aside how this arbitrary (and very low) limit makes me feel, are there any practical work-arounds for this bug?

like image 639
Roman Starkov Avatar asked Feb 01 '12 13:02

Roman Starkov


1 Answers

At this time there is no known way of doing this.

Which is just as well, because I found the performance to be poor; simply subclassing my Image control that was supposed to display the adorner, and drawing the overlay in the OnRender, worked much better (and unlike WinForms, the visual can extend beyond the logical boundary of the control).

like image 74
Roman Starkov Avatar answered Oct 21 '22 16:10

Roman Starkov