title: WPF pass parent binding object to the converter
body: <p>I have ItemsControl that is bound to collection of type Student.
  Inside the ItemTemplate I have a TextBox that uses IValueConverter to do some custom calculations and logic. I want to pass the actual Student object to the value converter, instead a property of it. How can I do that? Here's a sample of my code.</p>
  
  <pre><code> &lt;ItemsControl ItemsSource="{Binding StudentList}"&gt;
                              &lt;ItemsControl.ItemTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;TextBlock Text="{Binding Name}" /&gt;
                                      &lt;TextBlock Text="{Binding ????, Converter={StaticResource MyConverter}}" /&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/ItemsControl.ItemTemplate&gt;
   &lt;/ItemsControl&gt;
  </code></pre>
  
  <p>In the code I have this</p>
  
  <pre><code>public class MyValueConverter : IValueConverter
  {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
          {
              // I want 'value' to be of type Student.
              return null;
          }
  } 
  </code></pre>