I have a ListView that has 3 GridViewColumns and about 10 items. The third GridViewColumn’s content is:
<GridViewColumn.CellTemplate>
<DataTemplate>
<PasswordBox Width="200" Name="pbPass" />
</DataTemplate>
</GridViewColumn.CellTemplate>
Can someone tell me how to get the value of pbPass for say ListViewItem no 3?
The value should be in
PasswordBox.PasswordFrom code-behind, you’ll probably want to loop through
MyListBox.Items, get theContainerfor each Item usingMyListBox.ItemContainerGenerator, find the PasswordBox named pbPass in each ListBoxItem, and read thePasswordproperty