I am dynamically building custom content blocks and adding them to a FlowDocumentReader at runtime. I then need to loop back through them and selectively change the background color of the blocks (highlight) based on a preferences file that is persisted to disk. I can do these things just fine and the app works great except that I'm having a problem when the number of blocks added to the reader is so great that the reader has not completely loaded the blocks yet when the code is executed to highlight them. Obviously, there is an Object Reference error because the FlowDocumentReader is working asynchronously to finish loading all of its content and the block to highlight has not been loaded yet.
Is there an event of some sort that will tell me when the FlowDocumentReader has completely loaded all of its content?