Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

ItemContainerGenerator GenerateNext and Recycling

$
0
0

Hi,

I am writing my custom virtualizing panel and I stumbled upon Generator. I realized however wishes to create such a virtualizing panel, they will need the Generator and its GenerateNext method for generating the visible items to the user.

Now my question is, what will happen inside the hood of ItemControlGenerator when I run GenerateNext over an area that has been already generated/realized but noone of the realized containers was ever removed or recycled by the generator?

With removed/recycled I mean I never called the method remove() or recycle().

Would the generator connect the containers to the items once again and refresh its DataContext/Bindings even though the containers have been already realized?

Like I mentioned above I never called remove() or recycle() on containers who I generated/realized. But I am interested in what will Generator to do those already created Containers? Would it clear bindinds and connect it again? Would it refresh DataContext?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>