Pre loader

Applying Line style to custom CursorModifier

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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}"/>
Version
5.1.0.11299
  • You must to post comments
0
0

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.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies