How can I get actual size of an element that have auto size?

Hi!
I have an element with 100% width and height. But I need to know what actual size in px it is right now.
worldBound, rect.size, resolvedStyle.width returns 0, if size is dynamic.
Is there any way to get it?

Looking for parent recursively with static width doesn’t seem good.

Hello! That shouldn’t be true, resolvedStyle.width is what you’re looking for, but maybe the element isn’t attached to the panel yet? Could you register to the AttachToPanel event and check there or even GeometryChangedEvent?

Thanks!