How to set Textbox.Height to "auto" in Code? Thanks you
I believe Auto is Double.NaN
Double.NaN
Update -
In addition to valid Double values, this property can also be Double.NaN. This way you determine the automatic size behavior in the code.
from http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.height.aspx