Hey, kaul, what you are trying to do is that you just want to know the actual size of the specified WPF control without adding it to the visual tree or even logical tree, right?
Well, the problem is that WPF has a very sophisticated layout engine, to put it simple, WPF use two passes of layout operations to calculate the atual size and location of the child controls, they are Measure, and Arrange, Measure pass is responsible for figuring out how large the child control is desired to be, and the Arrange pass is finally responsible for positioning the control on the screen, and in the arrange pass, the actual size of the control is returned, and all those layout operations first happens on the root visual, typically its a Window, and immediately after the root visual, it will call the two passes of layout operations down the visual tree recursively on the child elements if they are present. so only if you add the control to the visual tree, its actual size can be calculated, and returned.
Sheva