Preventing InvalidateView

My application has a number of complex steps to perform during a transaction, including coloring nodes, laying out nodes, etc. I would like to prevent the network from “flashing”, or showing intermediate steps. I’ve tried using SuspendsUpdates, without success. Any suggestions on an approach that might work?


Right–using SuspendsUpdates can be dangerous. You don’t really want to prevent InvalidateView, but just delay when the painting happens.
Use GoView.BeginUpdate/EndUpdate. (This is just like for WinForms ListView or TreeView.) The easiest thing to do actually is to call GoDocument.BeginUpdateViews/EndUpdateViews, which calls the GoView methods on all of the views that are displaying that document.