Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 7 TextBox.Height = auto in Code?

How can set the Textbox.Height to "auto" in Code? Thank you

like image 542
Thu marlo Avatar asked Mar 04 '11 14:03

Thu marlo


1 Answers

I believe that Auto is Double.NaN

Update -

In addition to acceptable Double values, this property can also be Double.NaN. This is how you specify auto sizing behavior in code.

from http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.height.aspx

like image 193
Stuart Avatar answered Nov 13 '22 17:11

Stuart