title: Add coded control to UIMap (Coded UI Test)
body: <p>I would like to add a handwritten coded control to my UIMap.cs (not UIMap.Designer.cs).</p>
  
  <p>For example, when I record: <code>writing in a texBox</code>, I get the following code in UIMap.Designer.cs:</p>
  
  <pre><code>public class Recorded_Writing_In_forRecordParams
  {
      public string UIForRecordEditText = "forRecord";
  }
  
  public class UIMainWindowWindow : WpfWindow
  {
      public UIMainWindowWindow()
      {
          this.SearchProperties[WpfWindow.PropertyNames.Name] = "MainWindow";
          this.SearchProperties.Add(new PropertyExpression(WpfWindow.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains));
          this.WindowTitles.Add("MainWindow");
      }
  
      public WpfEdit UIForRecordEdit
      {
          get
          {
              if ((this.mUIForRecordEdit == null))
              {
                  this.mUIForRecordEdit = new WpfEdit(this);
                  this.mUIForRecordEdit.SearchProperties[WpfEdit.PropertyNames.AutomationId] = "forRecord";
                  this.mUIForRecordEdit.WindowTitles.Add("MainWindow");
              }
  
              return this.mUIForRecordEdit;
          }
      }
  
      private WpfEdit mUIForRecordEdit;
  }
  </code></pre>
  
  <p>I want use this control in my <code>CodedUITest</code>. Is there a way to search the <code>TextBox</code> in the <code>UIMap.cs</code> by own coded or to search it in my <code>TestMethod</code>? Which is the best way?</p>