Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Determining Desired Grid Height
posted

Hello,

Is there a way to determine the grid's desired height. This is simple enough to do by setting AutoFit to be false and checking the actual height, but I want to do this in one call from code.

The reason I'm doing this is I want to toss the grid into a ViewBox and need to determine how tall the grid should be to find out whether the grid should expand or have a fixed height with scrolbars.

Thanks