如何在文本块中拉伸文本

时间:2016-04-28 09:43:18

标签: wpf

如何使用TextLineBounds

在文本块中拉伸文本,就像在UWP中一样

UWP

    <Viewbox Stretch="Uniform">
        <TextBlock Foreground="Black" TextLineBounds="Tight">
            123
        </TextBlock>
    </Viewbox>

在WPF中

WPF

    <Viewbox Stretch="Uniform">
        <TextBlock Foreground="Black">
            123
        </TextBlock>
    </Viewbox>

0 个答案:

没有答案