Hi,
I want to change the font size of my tooltip, they are really small for some reason, how would I do that?
Is it possible to apply some kind of template so I can had images in the tooltips as well?
Thanks,
Pyt
How do you change the font size of tooltip in code?
For
M As Integer = 1 To 12series.DataPoints.Add(New DataPoint() With {.Label = Maaned(M), .Value = Data_Fravær(i, M), ToolTip = String.Format("{0:N2}", Data_Fravær(i, M))})Next
In this case you can use:
<Grid.Resources>
<Style TargetType="ToolTip">
<Setter Property="FontSize" Value="40" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToolTip">
<Border BorderBrush="Black" BorderThickness="2">
<ContentPresenter Content="{TemplateBinding Content}" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<igCA:XamChart Name="xamChart1">
...
Is there a way to apply a global template to all tooltips? I get my datapoints from a data source and I don't understand how I would apply the tooltip formatting to every single one of them.
You can specify tooltips with:
<igCA:XamChart.Series>
<igCA:Series ChartType="Column">
<igCA:Series.DataPoints>
<igCA:DataPoint Value="20">
<igCA:DataPoint.ToolTip>
<TextBlock Text="Tooltip" FontSize="40"/>
</igCA:DataPoint.ToolTip>
</igCA:DataPoint>
<igCA:DataPoint Value="30">
<Image Source="image.png" />
<igCA:DataPoint Value="15" Fill="White" />
</igCA:Series.DataPoints>
</igCA:Series>
</igCA:XamChart.Series>
</igCA:XamChart>