【问题标题】:Curve TextBlock in Windows 8Windows 8 中的曲线文本块
【发布时间】:2024-04-15 11:30:02
【问题描述】:

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

我是这样做的:

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

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

【问题讨论】:

    标签: c# xaml windows-8.1


    【解决方案1】:

    【讨论】:

    • @user3116366 您是否设法转换了 WPF 示例?您是如何在 WinRT 中获得 GetFlatnedPathGeometry() 等方法的?
    • 我说试试看,我没有花时间转换为 WPF,但我认为是可能的