Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

IWpfTextView has not completed its layout.

$
0
0

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


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>