tags:

views:

485

answers:

1

Hi,

As suggested I allow all of my WPF UIElements to have a dynamic size so they can be resized easily however, in TextBlocks I have to specify the size of the Font. This means when the element's size increases or decreases the Font size stays the same. Is there a way for the Font size to be dynamic?

Cheers,

James

+2  A: 

Try putting the text inside the control into a Viewbox

<Button>
    <Viewbox>
        <TextBlock>Text To Resize</TextBlock>
    </Viewbox>
</Button>
Simon