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

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

In today’s economy, layoffs have become a common occurrence. Companies may lay off employees for a variety of reasons, including...
Facebook is one of the most popular social media platforms in the world, with millions of users connecting with friends...
Temperature is a critical physical quantity that helps us determine the amount of heat present in a substance or environment....