Skip to content

What's the point of setting Height and Width in NaN? #5999

Answered by maxkatz6
SKProCH asked this question in Q&A
Discussion options

You must be logged in to vote

NaN - default value for Width and Height.
If these properties had different value set (for instance from styles), and you want to set it back to default, you need to use NaN.
It's also an equivalent of Auto value from WPF.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SKProCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants