In getting an 'InvalidOperationException' in my 'OnChanged' event handler for a given (IWpfTextView) instance.
The exception message is "IWpfTextView has not completed its layout."; however, I check the Boolean property 'InLayout' in my code first, and it is 'false' for the view in question. What the...!?
Here is some additional exception information:
The HResult = 0x80131509
The Source = Microsoft.VisualStudio.Platform.VSEditor
So, my questions are:
Q: What is what is the meaning of 'InLayout' in this context -- it seems contradictory (to me).
Q: What is the best way to manipulate a view; say reset its (top) base-line, after detecting a change?
Obviously I cannot do it during the 'OnChanged' event.
Glenn Puchtel