title: Binding to ItemsPresenter property
body: <p>I have the following XAML:</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding...}" &gt;
      &lt;ItemsControl.Template&gt;
          &lt;ControlTemplate&gt;
              &lt;ItemsPresenter x:Name="testGrid"/&gt;
          &lt;/ControlTemplate&gt;
      &lt;/ItemsControl.Template&gt;
      &lt;!--Use the ItemsPanel property to specify a custom UniformGrid that
      holds the laid out items.--&gt;
      &lt;ItemsControl.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;tools:UniformGridRtL Columns="8" x:Name="testGrid2" /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/ItemsControl.ItemsPanel&gt;
  
      &lt;!--Use the ItemTemplate to set a DataTemplate to define
          the visualization of the data objects. This DataTemplate
          specifies that each data object appears RegisterBit appears
          as a CheckBox bound to RegisterBit properties. It also defines
          a custom template for the checkbox.--&gt;
      &lt;ItemsControl.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;CheckBox... /&gt;
          &lt;/DataTemplate&gt;
      &lt;/ItemsControl.ItemTemplate&gt;
  &lt;/ItemsControl&gt;
  
  &lt;Label&gt;
      &lt;Binding ElementName="testGrid2" Path="property_of_UniformGridRtL"/&gt;
  &lt;/Label&gt;
  </code></pre>
  
  <p>Basically, I have a custom Panel (UniformGridRtL) set as an ItemsPanelTemplate, which will template the ItemsPresenter in the ItemsControl. UniformGridRtL has a property, which I would like to bind to, but ElementName doesn't seem to work in the Label Binding.
  How can I bind to a property of a generated ItemsControl items host?</p>