title: Accessing "current class" from WPF custom MarkupExtension
body: <p>I'm attempting to write a custom <code>MarkupExtension</code> to make my life easier by giving me a better way to specify bindings in XAML. However I would like to know if there is any way I can access the object that represents the file the <code>MarkupExtension</code> is used in.</p>
  
  <p>In other words, suppose I have a <code>UserControl</code> that defines a particular rendition of a data model of my program. This control has lots of visual stuff like grids, borders and general layout. If I use my <code>MarkupExtension</code> on a particular property of some element in this <code>UserControl</code>, I want to access the instance of the <code>UserControl</code>, without knowing what type it is (I plan on using reflection).</p>
  
  <p>Is this at all possible?</p>