WPF System.ComponentModel.Win32Exception (0x80004005): Invalid window handle WPF System.ComponentModel.Win32Exception (0x80004005): Invalid window handle wpf wpf

WPF System.ComponentModel.Win32Exception (0x80004005): Invalid window handle


Do you not have a DisplayClass method in your code?

I can also see that there is a VirtualizingStackPanel involved and the error occurred when it called the UIElement.UpdateLayout() method on its children.

That's about all that I can work out from this error and without any more information, I can't help any further.