I have a TextBlock
nested in a Viewbox.
<Viewbox x:Name="ContentPanel">
<TextBlock x:Name="CharacterBlock" TextAlignment="Center" Text="愛" />
</Viewbox>
How can I know the height and width of the TextBlock
? RenderSize
and ActualWidth/Height
all return its original size, instead of it's size as scaled by the Viewbox.