Quote Originally Posted by xdn View Post
I have a stream of images on top of which rectangles are shown to mark certain regions/objects. As new regions/objects show up and others disappear, I need to add/destroy rectangles. Technically there is an upper limit to the number of rectangles but I'd rather have them created dynamically.
You have to remember creating/destroying is always slower than showing/hiding. It's a trade-off decision you have to make.

As for keeping all the rectangles -- you can create a property that will hold a list of items.