title: WPF Chart Custom Tooltip Binding
body: <p>I have a WPF Chart that I am dynamically binding a BarSeries to.  I would like to have the BarSeries show 3 pieces of information, however.  The third piece of information I would like to be shown in the tooltip of any given datapoint.</p>
  
  <p>Is there any way to dynamically bind the value/content of the tooltip for a given datapoint in my barseries??</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;Style
         x:Key="SimpleDataPointStyle"
         BasedOn="{StaticResource {x:Type chartingToolkit:BarDataPoint}}"
         TargetType="{x:Type chartingToolkit:BarDataPoint}"&gt;
          &lt;Setter Property="Width" Value="20"/&gt;
          &lt;Setter Property="Height" Value="20"/&gt;
          &lt;Setter x:Name="DataPointToolTip" Property="ToolTip" Value="{Binding Path=Event_Description}"/&gt;
      &lt;/Style&gt;
  &lt;/UserControl.Resources&gt;
  &lt;Grid x:Name="MetricsPanel" Width="904" Height="376" HorizontalAlignment="Left" VerticalAlignment="Top"&gt;   
      &lt;chartingToolkit:Chart x:Name="MetricChart" HorizontalAlignment="Left" Width="464" Height="352" VerticalAlignment="Top"&gt;
          &lt;chartingToolkit:Chart.Series&gt;
              &lt;chartingToolkit:BarSeries x:Name="MainSeries"
                                         Title="Contribution to Risk and Errors (%)"
                                         IndependentValueBinding="{Binding}"
                                         DependentValueBinding="{Binding}"&gt;
                  &lt;chartingToolkit:BarSeries.DataPointStyle&gt;
                      &lt;Style
                          BasedOn="{StaticResource SimpleDataPointStyle}"
                          TargetType="{x:Type chartingToolkit:BarDataPoint}"&gt;  
                      &lt;/Style&gt;
                  &lt;/chartingToolkit:BarSeries.DataPointStyle&gt;
  
              &lt;/chartingToolkit:BarSeries&gt;
          &lt;/chartingToolkit:Chart.Series&gt;
      &lt;/chartingToolkit:Chart&gt;
  </code></pre>
  
  <p>Code-Behind</p>
  
  <p>highestWeightedEvents = BuildHighestWeightedEventsTable();</p>
  
  <pre><code>        MainSeries.DependentValueBinding = new Binding("Cutset_Frequency");
          MainSeries.IndependentValueBinding = new Binding("Event_Number");
          MainSeries.ItemsSource = highestWeightedEvents.DefaultView;
          Style dataPointStyle = (Style)Resources["SimpleDataPointStyle"];
          MainSeries.DataPointStyle = dataPointStyle;
  </code></pre>
  
  <p>How can I specify the binding for the tooltip in code behind?</p>
  
  <p>Thank in advance...</p>