Curve TextBlock dans Windows 8
-
21-12-2019 - |
Question
Je souhaite créer de texte de texte incurvé à l'aide de xaml comme:
Je le fais comme ceci:
<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>
mais pas de succès.
Pouvez-vous me dire une meilleure façon?
La solution
Essayez de travailler sur la conversion de celle-ci en Windows 8:
http://www.codeproject.com/Articles / 30090 / Text-On-A-Path-in-WPF
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow