Q&A #18 – NaN for a Windows Phone Textbox Height

NaN for a Windows Phone Textbox Height

Did you know that you can set the value of the height property to “NaN” for a Windows Phone textbox?

The Textbox height property accepts double value but can also accept “NaN”.

By specifying this, we can specify the auto size property for the textbox. Alternatively, you can also set this value to “Auto” too.

<TextBox Margin="14,15,0,0" Name="textBox1" Height="NaN" />
<TextBox Margin="14,15,0,0" Name="textBox1" Height="Auto" />

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

No, the forward navigation is currently not supported in Windows Phone 8. Q&A #42 – Is Forward Navigation supported in...
A few months back i had posted a Q&A on the Topic " What it takes to be a Good...
If you are a regular readers of the technical books , Apress is one of the publishers which comes in...