Dynamic font size based on text length


We would like to see if there is a built in way of having the font size change depending on the length of the text (instead of wrapping or hiding with an ellipsis when its too long).

If there is no built in way then I assume I could make a basic binding that returns a font string based on the input value.

Thanks in advance!

Just wrap the TextBlock in a “Viewbox” Panel.