XamMultiColumnComboEditor control got into a bad state and I can not get past an exception being thrown in the designer.
I have tried the following:
2. Remove the control and re-add the control
3. Remove all bindings and property settings
Has anyone seen this before? Any ideas for things to try?
Hi. I solved my own problem. For anyone who encounters this, one possible solution is to remove all instances of the control, and remove the references specific to the control, then add the control back to the form.
For example, for XamMultiColumnComboEditor, relevant references are:
The steps that I took to resolve the BadImageFormatException were as follows:
1. Remove all instances of XamMultiColumnComboEditor from the form (save the underlying xaml code)
2. Remove the above 3 references from the project.
3. Drag and drop the XamMultiColumnComboEditor from the Toolbox back to the form (allows Visual Studio to reinstate the 3 references).
4. Restore the underlying xaml.
Other controls will have a different set of references. This is what worked for me. Thank you.
Hello D Paw,
I am glad you were able to resolve your issue in this case. I cannot say that I have seen this issue before and I am unable to reproduce it, but it sounds like something was corrupting with the Visual Studio designer, which we do not really have any control over.
Please let me know if you have any other questions or concerns on this matter.
Thanks, Andrew. I think you are right. I've seen the Visual Studio designer do some funny things in the past. Best thing to do sometimes is start backing out changes until things begin to work, then move forward again.