
I seem to be having a strange problem with the PropertyGrid when using the VirtualizingStackPanel class. The propertygrid is inside a Grid, which itself is inside a (actipro) wizard page (see below):
The problem is that when anything is modified on the wizard page, when 'Next' is clicked to go onto the next page the dialog box this is all in throws a whole bunch of exceptions (which in this particular application pop up as little windows) saying "Specified argument was out of range of valid values. Parameter name: index".
It actually continues throwing them, filling the screen with little windows, until you kill the application. Removing the VirtualizingStackPanel line (that I've commented out above) resolves the issue and everything works as expected. I don't know if this is something I'm doing wrong or some sort of bug in the propertygrid. There really aren't very many entries in any of these wizard pages, so there's probably not much to be gained by virtualizing anyways, but it'd be nice to know what's causing this. Thanks!