Hi,,
I have created a custoom tooltip for a lineseries chart. however my problem is that this custom tooltip is never loaded..(I still get the default tooltip i.e. X-value)
Is there something I should be doing differently??
page.xaml
<Style x:Key="ttip" TargetType="chartingToolkit:LineDataPoint">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="chartingToolkit:LineDataPoint">
<Grid x:Name="Root" Opacity="0">
<ToolTipService.ToolTip>
<StackPanel>
<ContentControl Content="{TemplateBinding FormattedIndependentValue}"/>
<StackPanel Orientation="Horizontal">
<ContentControl Content="{TemplateBinding FormattedDependentValue}"/>
</StackPanel>
</StackPanel>
</ToolTipService.ToolTip>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<chartingToolkit:Chart x:Name="chart" Grid.Row="0">
<chartingToolkit:LineSeries
DataPointStyle="{StaticResource ttip}" />
page.xaml.cs (creating and binding)
...
lineSeries = new LineSeries()
{
ItemsSource = storageInfo,
DependentValueBinding = new Binding(dependentValueString),
IndependentValueBinding = new Binding("CollectionDatek__BackingField"),
};
}
...
Thanks for your help...
Ron..