title: Bind a Property that is outside of an Itemscontrol in XAML
body: <p>I am trying to bind a Property that is outside of an Itemscontrol.
  However that doesn't seem to work.</p>
  
  <p>It seems that in ItemsControl, DataTemplate it refers to what is inside of the collection and not outside of it.
  I have tried with RelativeResource and Referred to AncestorType for the ViewModel.</p>
  
  <p>Code (VM):</p>
  
  <pre><code>public class Test {
    public string GetThis {get{return "123";} set{}}
    public List&lt;string&gt; IterateProperty {get; set;}
  }
  </code></pre>
  
  <p>XAML (View):</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding Path=IterateProperty}"&gt;
    &lt;ItemsControl.ItemTemplate&gt;
      &lt;DataTemplate&gt;
        &lt;TextBlock Text="I want to bind the string property GetThis!" /&gt;
  </code></pre>