title: Find Parent Control By Type ->as String<-
body: <p>I need to find the parent of a UserControl using the string of the type.</p>
  
  <p>For example, the method signature would look something like this:</p>
  
  <pre><code>DependencyObject FindParentControl(string type) 
  </code></pre>
  
  <p>That would let me call it like this:</p>
  
  <pre><code>var parent = FindParentControl("MyRegion.MyView");
  </code></pre>
  
  <p>And it would traverse up the logical tree looking for a parent that has the passed in type.  If found it is returned (as an Object).  If not, null is returned.</p>
  
  <p>All the examples I can see use generics and require the type.  Normally that is fantastic.  But in my situation, I have a view made by two other views (via a RegionManager) and there is no way to know who the parent/owner is.</p>