This is probably quite a simple question but very hard to google! I’m loading my header from external content so sometimes it will be longer than others. What I want is for the font to automatically resize so it fits on the page. Any ideas?
<controls:PivotItem Name="Header" Header="some string that can be long" FontStretch="ExtraCondensed">
The easiest way is to use a converter that converts the string length to a font stretch/font size:
although from a design perspective I wouldn’t change the font depending on the string length