The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
Swipe gesture - textblock. RRS feed

  • Question

  • I have a textblock that I would like to change the text of when a user swipes to the left or right within the textblock.

    How can I do this? I've tried looking it up but could not find what I was looking for. Thank you.

    Tuesday, August 6, 2013 7:24 AM

Answers

  • What about;

    <TextBox 
                    x:Name="TextBoxFlick"
                    TextWrapping="Wrap"                
                    Text="Before swipe" 
                    >
                        <tk:GestureService.GestureListener>
                            <tk:GestureListener x:Name="myGridGestureListener" Flick="TextBox_Flick" />
                        </tk:GestureService.GestureListener>
                    </TextBox>
    where tk is the toolkit


    http://pauliom.wordpress.com

    • Marked as answer by lt37 Tuesday, August 6, 2013 11:32 PM
    Tuesday, August 6, 2013 8:01 AM