Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a LongListSelector and its DataTemplate is like this: a Grid that has in left a TextBlock and in right a Button. When I press a button I want to get the text inside the TextBlock that is near the button.
My idea is to get the row index of that button and with that index to access the specified TextBlock, but I don't know how to do this.
If someone know how to do this you can write the code or if someone has a better idea I'm open to solutions.

This is my xaml: XAML

What I have tried:

I tried to search on blogs and on internet and I can't find a good way.
Posted
Updated 5-Nov-16 11:16am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900