Windows Phone 7 TextBox.Height = auto in code?

How to set Textbox.Height to "auto" in Code? Thanks you

+6
c # windows-phone-7 silverlight
source share
1 answer

I believe Auto is 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

+22
source share

All Articles