I have a ListView that displays a few TextBoxes. For each TextBox, I am catching a SelectionChanged event.
My XAML file looks something like this:
<ListView>
<GridView>
...
<DataTemplate>
<TextBox SelectionChanged="Box_SelectionChanged" />
</DataTemplate>
...
</GridView>
</ListView>
And my Xaml CS file looks like this:
private void Box_SelectionChanged(object sender, TextChangedEventArgs e) {}
In my Box_SelectionChanged function, I would like to get the ListViewItem in which the text box was updated.
How can I do so?
System.Windows.Controls.TextBox