HeightLines Property for TextBox in UWP
Would be line if you could set the height of a TextBox using number of Lines. Example:
<!-- Set TextBox Height to 10 lines (REQUESTED FEATURE)-->
<TextBox HeightLines="10" AcceptsReturn="true"/>
<!-- Set TextBox Height to 300 pixels (CURRENT ONLY PIXELS)-->
<TextBox Height="300" AcceptsReturn="true"/>
The reason why its a good idea to at HeightLine property is that it allows everything to be done in XAML, setup the FontSize, FontFamily, and the Pixels size expands to match exactly 10 lines.
And it can be made compatible with Height in Pixels Property. When HeightLine=-1 then the height is set with Height Property. When HeightLine != -1 then the height is calculated using HeightLine Property. The default value for HeightLine can be set to "-1" by default to maintain backwards compatibility
It would also be nice if you set HeightLines > 1 that it automatically set property "AcceptsReturn" to "true".