Getting value of a PasswordBox that's inside a ListView

前端 未结 1 1943
情书的邮戳
情书的邮戳 2021-01-26 17:04

I have a ListView that has 3 GridViewColumns and about 10 items. The third GridViewColumn\'s content is:


         


        
相关标签:
1条回答
  • 2021-01-26 17:35

    The value should be in PasswordBox.Password

    From code-behind, you'll probably want to loop through MyListBox.Items, get the Container for each Item using MyListBox.ItemContainerGenerator, find the PasswordBox named pbPass in each ListBoxItem, and read the Password property

    0 讨论(0)
提交回复
热议问题