title: Inserting a text box dynamically
body: <p>Till now I had only to display some check boxes on a stack panel.Thus I was proceeding as </p>
  
  <p>to build the content of the check box.</p>
  
  <pre><code> public void addAlarmcl(string argComparator, string value, string argColor)
          {
              if ((!string.IsNullOrEmpty(argComparator)) &amp;&amp; (!string.IsNullOrEmpty(value)) &amp;&amp; (!string.IsNullOrEmpty(argColor)))
              {
                  //hexadecimal of color chosen
                  Color color = (Color)ColorConverter.ConvertFromString(argColor);
                  //this is to be displayed in stackpenl
                  string TheOneYouJustBuilt = "If statistics are /" + argComparator + "/" + value + "/ ,notify by /" + color + "/.";
                  addToStackPanel(TheOneYouJustBuilt);
              }
  
          }  
  </code></pre>
  
  <p>and then added it to the stack panel as </p>
  
  <pre><code>//this will display the built alarms on the stackpanel
          public void addToStackPanel(string argBuiltAlarm)
          { 
              CheckBox checkQueries = new CheckBox() { Content = argBuiltAlarm };
              stackPanel1.Children.Add(checkQueries);
              AlarmList.Add(checkQueries);
              //storing the built queries alongside FOR DELETION (OR OTHER REFERENCES)
              AlarmThatIsBeingDisplayed.Add(argBuiltAlarm.ToString());
          }
  </code></pre>
  
  <p>But now I need a textbox at the end of the checkboxes content.How to modify my codes to add that textbox ?</p>
  
  <p>I know that to declare a new text box we do</p>
  
  <pre><code> var textbox = new TextBox();
   //thn we set its properties and all
  </code></pre>
  
  <p>But How do I append it just after the checkboxes content ?</p>