I have a pretty simple test app, here is the XAML that is relevant:
<DataTemplate><StackPanel Orientation="Horizontal" Tap="StackPanel_Tap_1"><Image Source="{Binding Path=IconURL}" Height="64" Width="64"/><TextBlock Text="{Binding Path=UUID}" Padding="4,0" Foreground="Black" VerticalAlignment="Center"/><TextBlock Text="{Binding Path=FriendlyName}" Foreground="Black" VerticalAlignment="Center"/></StackPanel></DataTemplate>
I want the user to be able to click or tap the Image and then in the handler for that I need to get at the text in the UUIDTextBlock.
I've tried a variety of ways but to no avail - had a handler on the Image and then tried to use FindName - but get null.
I tried moving the handler to the StackPanel itself and doing the same - but again - null.
The above all sits withing a LongListSelector but that container should be secondary to solving this issue.
So how can we get at the text when an image is clicked given that by its nature the display may have many lines of this displayed?
Thx
Cap'n