使用超过144个装饰器 [英] Using more than 144 adorners

查看:87
本文介绍了使用超过144个装饰器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它出现了可以不损坏的装饰器的最大数量为144。

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

我有一个带有一堆对象的ScrollView,其中许多带有装饰器。前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?

推荐答案

目前尚无已知方法。

也一样,因为我发现性能很差;只需将应该显示装饰器的Image控件子类化,并在 OnRender 中绘制叠加层,效果会更好(与WinForms不同,视觉效果可以超出逻辑边界控件)。

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).

这篇关于使用超过144个装饰器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆