I have the following XAML:
<ItemsControl ItemsSource="{Binding...}" >
    <ItemsControl.Template>
        <ControlTemplate>
            <ItemsPresenter x:Name="testGrid"/>
        </ControlTemplate>
    </ItemsControl.Template>
    <!--Use the ItemsPanel property to specify a custom UniformGrid that
    holds the laid out items.-->
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <tools:UniformGridRtL Columns="8" x:Name="testGrid2" />
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <!--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.-->
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <CheckBox... />
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
<Label>
    <Binding ElementName="testGrid2" Path="property_of_UniformGridRtL"/>
</Label>
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?