title: Get content of textbox which is located in listView WPF
body: <pre><code>&lt;ListView x:Name="listView2" HorizontalAlignment="Left" Height="215" Margin="348,10,0,0" VerticalAlignment="Top" Width="275"&gt;
      &lt;ListView.View&gt;
            &lt;GridView&gt;
                 &lt;GridViewColumn Header="Id" DisplayMemberBinding="{Binding Id}"/&gt;
                 &lt;GridViewColumn Header="Artikelnr" DisplayMemberBinding="{Binding Artikelnr}"/&gt;
                 &lt;GridViewColumn Header="Bezeichnung" DisplayMemberBinding="{Binding Bezeichnung}"/&gt;
                 &lt;GridViewColumn Header="Menge"&gt;
                     &lt;GridViewColumn.CellTemplate&gt;
                           &lt;DataTemplate&gt;
                                &lt;TextBox x:Name="textBoxListView1" Width="80" Tag="{Binding Menge}"/&gt;
                           &lt;/DataTemplate&gt;
                     &lt;/GridViewColumn.CellTemplate&gt;
                 &lt;/GridViewColumn&gt;    
             &lt;/GridView&gt;
        &lt;/ListView.View&gt;
   &lt;/ListView&gt;
  </code></pre>
  
  <p>This is my ListView, which contains TextBoxes. So there are as many textboxes as rows. <strong>My question is how can I get the content of these textboxes?</strong></p>
  
  <p>I already tried this:</p>
  
  <pre><code>MyItem clMyItem = new MyItem();
  clMyItem = (MyItem)listView2.Items.GetItemAt(zeile);
  
  clArtikel.nId = Convert.ToInt32(clMyItem.Id);
  clArtikel.cArtikelnr = clMyItem.Artikelnr;
  clArtikel.cBezeichnung = clMyItem.Bezeichnung;
  clArtikel.nMenge = clMyItem.Menge;
  </code></pre>
  
  <p>but for <code>clMyItem.Menge</code> it only returns a null value, probably because this code only gets the content of the textbox at a status directly after the textbox was created. </p>