I have a stackpanel that contains an Image and a TextBlock. I'm raising an event once double click is being performed by the user.(P.S - I'm adding the StackPanel and it's children (the Image and the TextBlock programatically if it matters).
Now, I need to get the TextBlock element from inside the stackpanel, I understand that I should do it using DataBinding, but I'm a beginner to WPF, and really haven't found any examples about it in the web. I'll be glad for an explanation, thank you very much!
(I learnt about DataBinding a while ago).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…