I'm using a viewbox to scale a textblock. But when the fontsize of the textblock is below a certain fontsize I want to trim the text with... and stop scalling.
How can I achieve this?
<Grid x:Name="UserStatusPanel" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">
<Viewbox Name="canMain"
MaxWidth="{Binding ActualWidth, ElementName=UserStatusPanel}"
StretchDirection="DownOnly"
HorizontalAlignment="Left">
<TextBlock x:Name="UserStatusLabel"
TextWrapping="Wrap"
Text="{Binding UserStatus}"
FontFamily="Segoe UI"
FontSize="14"
Foreground="{StaticResource AlmostWhite}"
TextTrimming="CharacterEllipsis"/>
</Viewbox>
</Grid>