SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
I am using a custom CursorModifier class in my WPF code. I have created a class inherited from CursorModifier for this purpose. Now I want to apply cross-hair cursor style to my chart. The style in XAML is not getting applied at all. However, when I use the CursorModifier directly (instead of custom modifier class) in XAML, then it applies.
If I changed the TargetType to “loca:MyCursorModifier”, then it gives error “The memeber StrokeThickness is not recognized” & “The “memeber Stroke is not recognized”.
<UserControl.Resources>
<Style x:Key="CrossLineStyle" TargetType="Line">
<Setter Property="StrokeThickness" Value="1" />
<Setter Property="Stroke" Value="Black " />
</Style>
</UserControl.Resources>
<local:MyCursorModifier ShowTooltip="False" ShowTooltipOn="Never" ShowAxisLabels="False" SourceMode="AllSeries" LineOverlayStyle="{StaticResource CursorLineStyle}"/>
Hi Anil,
Thanks for your question.
It looks like the issue lies in your custom modifier class. Unfortunately, we don’t provide support for any chart customisation.
Please take a look at our “Using CursorModifier Tooltips” example for more info regarding CursorModifier styling:
https://www.scichart.com/example/wpf-chart-example-using-cursormodifier-tooltips/
And documentation regarding CursorModifier:
https://www.scichart.com/documentation/v5.x/webframe.html#CursorModifier.html
Unfortunately, I can’t be more helpful without seeing the source code of your CustomModifier.
Please login first to submit.