locked
curve textblock in windows 8

    Question

  • I want to create curve 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 ?


    Tuesday, February 25, 2014 3:43 PM

Answers

All replies

  • Have a look at this Charles Petzold article and this CodeProject article.  While these are both for WPF, I suspect you can probably come up with something similar for a store app.

    - Brady My posts are kept as simple as possible for easier understanding. In many cases you can probably optimize or spruce up what I present. Have fun coding!

    Tuesday, February 25, 2014 5:16 PM
  • ok thanks, i will read these articles for sure :)
    • Marked as answer by Ahad Siddiqui Wednesday, February 26, 2014 9:11 AM
    • Unmarked as answer by Ahad Siddiqui Wednesday, February 26, 2014 9:11 AM
    Tuesday, February 25, 2014 5:30 PM