How do I keep a constant FontSize in WPF Viewbox?
I have a Viewbox with a number of TextBlock s that are scaled and positioned perfectly by the ViewBox . Something like this: <Viewbox Stretch="Uniform"> <Canvas Width="100" Height="100"> <Ellipse Width="100" Height="100" Stroke="Black"/> <TextBlock Width="100" TextAlignment="Center" FontSize="12">Top Center</TextBlock> </Canvas> </Viewbox> If the user resizes the Viewbox its contents are perfectly scaled to match. However I would like to keep the FontSize to 12 regardless of the actual size of the Viewbox . How can I do this? Can I do this in XAML without attaching to an Resize event? Aviad P.