title: Getting IUIItem[] for children of CustomUIItem in TestStack.White
body: <p>A WPF Application is using an Application Framework and I can edit neither of them.</p>
  
  <p>I can visit every element in the GUI doing something along these lines:</p>
  
  <pre><code>IUIItem[] items = window.GetMultiple(SearchCriteria.All);
  foreach (var item in items)
  {
      visit((dynamic)item);
  }
  </code></pre>
  
  <p>I have no Issue with normal controls but I hit a wall with <code>CustomUIItem</code>.</p>
  
  <p>I would like to visit all the Children of it but I fail to make a new array <code>IUIItem[]</code> from them.</p>
  
  <p>Here is what I have now:</p>
  
  <pre><code>    void visit(CustomUIItem item)
      {
          AutomationElementCollection children =
              item
              .AutomationElement
              .FindAll(TreeScope.Children, Condition.TrueCondition);
          UIItemCollection temp = new UIItemCollection(children.Cast&lt;AutomationElement&gt;());
          foreach(var t in temp)
          {
              visit((dynamic)t);
          }
      }
  </code></pre>
  
  <p>Somethimes this throws and most of the time collection remains empty.</p>
  
  <p>The <code>CusomControl</code> has "normal" controls among its children.
  I want those as regular <code>IUIItem</code>s. </p>
  
  <p>Where can I find the documentation for this.
  The only thing I found was <a href="http://teststackwhite.readthedocs.io/en/latest/AdvancedTopics/CustomUIItems/" rel="nofollow noreferrer">this</a>, and I can not do that since I am only visiting from outside and I do not know the controls content.</p>