How do you get the bounds of an object? #1404
-
When I draw a grid or panel that is sized to fit the content, how do I figure out the width/height that it used when rendered? |
Beta Was this translation helpful? Give feedback.
Answered by
patriksvensson
Dec 12, 2023
Replies: 1 comment
-
You can't get the absolute width/height from a rendered object. The best you can do is calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
patriksvensson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't get the absolute width/height from a rendered object. The best you can do is calling
Measure
on the IRenderable object, but that will only give you a minimum and maximum width.