title: Multibinding WPF
body: <p>I am arranging few textblocks in a canvas based on it's locations. sample code snippet is provided below at bottom. For this process I need to access each textblock's Actualwidth and Actual Height inside ItemContainerStyle. I am struggling to access it's properties as below by element name, because it doesn't have a name. How to do it? Do I need to do through templates?</p>
  
  <pre><code>&lt;MultiBinding Converter="{StaticResource BPositionConverter}" ConverterParameter="Left"&gt;                            
       &lt;Binding ElementName="TextBlock" Path="ActualHeight" /&gt;  &lt;---Problem
       &lt;Binding ElementName="TextBlock"  Path="ActualWidth" /&gt;  &lt;---Problem
  &lt;/MultiBinding&gt;
  </code></pre>
  
  <p>--Full snippet</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding Locations}"&gt;
      &lt;ItemsControl.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;Canvas /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/ItemsControl.ItemsPanel&gt;
      &lt;ItemsControl.ItemTemplate&gt;
          &lt;DataTemplate DataType="Point"&gt;
              &lt;TextBlock Text="{Binding}" Width="40" Height="20" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/ItemsControl.ItemTemplate&gt;
      &lt;ItemsControl.ItemContainerStyle&gt;  
          &lt;Style TargetType="ContentPresenter"&gt;  
              &lt;Setter Property="Canvas.Left"&gt;
                  &lt;Setter.Value&gt;
                      &lt;MultiBinding Converter="{StaticResource BPositionConverter}" ConverterParameter="Left"&gt;                            
                          &lt;Binding ElementName="TextBlock" Path="ActualHeight" /&gt;  &lt;---Problem
                          &lt;Binding ElementName="TextBlock"  Path="ActualWidth" /&gt;  &lt;---Problem
                      &lt;/MultiBinding&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/ItemsControl.ItemContainerStyle&gt;
  &lt;/ItemsControl&gt;
  </code></pre>