Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Setting ToolTip Properties?
posted

Is it possible to set the ToolTip properties within the DataPoint with a Style? I tried this below, but nothing changed. I was wondering if I had the Property set correctly, or if this is not possible. Thanks. 

<Style TargetType="{x:Type igCA:DataPoint}">
     <Setter Property="ToolTip.Background" Value="Red"/>
</Style>

Parents
No Data
Reply
  • 17605
    posted

    You can try:

           <igCA:XamChart x:Name="xamChart">
                <igCA:XamChart.Resources>
                    <Style TargetType="{x:Type ToolTip}">
                        <Setter Property="Background" Value="Red"/>
                    </Style>
                </igCA:XamChart.Resources>
                <igCA:XamChart.Series>
                    <igCA:Series ChartType="StackedColumn">
                        <igCA:Series.DataPoints>
                            <igCA:DataPoint Value="5" ToolTip="5" />
                            <igCA:DataPoint Value="10" ToolTip="10" />
                        </igCA:Series.DataPoints>
                    </igCA:Series>
                </igCA:XamChart.Series>
            </igCA:XamChart>

Children
No Data