wpf - Adding a user control "The Enumerator is not valid" -


I am using Visual Studio 2010 to create a small WPF application that I have created a user control I am trying to add to the main form. The user appears in the control toolbox, but every time I get the error, I try to drag it in:

The archive has changed because the calculator is not valid.

I should know what is wrong and it is my anger that I can not understand it.

You have a bug in the user control constructor - on IEnumerable Using a foreach-loop and when the loop is running, then IEnumerable is turned off, it is not allowed with a foreach loop if you are manipulating that archive So you use for loop.


Comments