Curve TextBlock in Windows 8

我是研究僧i 提交于 2019-12-13 14:23:47

问题


I want to create Curved TextBlock using XAML like:

I am doing it like this :

<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>

But no success.
Can you tell me a better way?


回答1:


Try to work on converting this to Windows 8:

http://www.codeproject.com/Articles/30090/Text-On-A-Path-in-WPF



来源:https://stackoverflow.com/questions/22017542/curve-textblock-in-windows-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!