Windows 8中的曲线TextBlock

时间:2014-02-25 14:44:38

标签: c# xaml windows-8.1

我想使用XAML创建Curved TextBlock,如:

enter image description here

我这样做:

<TextBlock TextWrapping="Wrap" Text="TextBlock" FontSize="30" Height="46"
           Width="182" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left"
           VerticalAlignment="Top" Canvas.ZIndex="-1" Foreground="White"
           Margin="486,125,0,0" UseLayoutRounding="False" d:LayoutRounding="Auto">
    <TextBlock.Projection>
        <PlaneProjection RotationZ="360" />
    </TextBlock.Projection>
    <TextBlock.RenderTransform>
        <CompositeTransform Rotation="-30"/>
    </TextBlock.RenderTransform>
</TextBlock>

但没有成功。
你能告诉我一个更好的方法吗?

1 个答案:

答案 0 :(得分:1)