Set parent layout dirty

Hi, is there a way to mark a parent layout as dirty if any children of the parent change?

I’m looking for a way to post-process the position of all children under a container (to ensure no overlaps) amongst the children of a container. But I want to do this after all children have initially performed their layouts, or whenever some children change.

GeometryChanged event won’t work, because the geometry of the parent doesn’t actually change

As you mentioned, GeometryChangedEvent is only sent when an element changes its own size, it is not “recursive”. There is no other mechanism today to get notified of size changes.

Depending on what you want to do, either polling the layout of elements you’re interested every frame, or attaching GeometryChangedEvent to each child are potential alternatives.