What event/callback can I use to know that a Canvas has completed its full layout?
Simply registering a ICanvasElement and responding to the LayoutComplete is not enough.
CanvasUpdateRegistry.IsRebuildingLayout is still true.
so… Let’s say I was spawning some objects in that LayoutComplete method and disabling them.
CanvasUpdateRegistry complains:
“Trying to remove element from rebuild list while we are already inside a rebuild loop. This is not supported.”
Ok fine, I don’t want to disable something in the rebuild loop, which is why I’m doing it in LayoutComplete. Maybe we need another method LayoutActuallyCompleteNow
register into it via
CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this);
CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(this);