title: Add checkboxes to a list of dynamically generated result
body: <p>I have a list of result listed after extracting from a .txt file. I would like to add a checkbox behind every results listed. The following is my code:</p>
  
  <pre><code>    private void LoadFile() {
          List&lt;string&gt; lines = new List&lt;string&gt;();
          try
          {
              StreamReader sr = new StreamReader("test.txt");
              while (!sr.EndOfStream)
              {
                  lines.Add(sr.ReadLine());
              }
              sr.Close();
  
              for (int i = 3; i &lt; lines.Count; i++)
              {
                  resultsTreeView.Items.Add(lines[i].ToString().Substring(67,17));
                  resultsTreeView.Items.Add(CheckBox[i]);
              }
  </code></pre>
  
  <p>How can I add checkboxes as the results extracted will change every time? I would like to track which boxes has checked as well so that I can print the result to users. Thank you!</p>