Pre loader

How can I style the FastLineRenderableSeries ?

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

Dear all,

I try to style default value for the FastLineRenderSeries by setting the stroke color and thinckness.
If In set directly those value inside xaml as below it works fine :

<s:SciChartSurface.RenderableSeries>
            <s:FastLineRenderableSeries  DataSeries="{Binding ColumnDataSeries}"
                                         Stroke="DarkBlue"
                                         StrokeThickness="2"/>
        </s:SciChartSurface.RenderableSeries>

Then if I create the following style and apply it, it does not work

<Style x:Key="SingleStrokeStyle" TargetType="s:FastLineRenderableSeries">
    <Setter Property="Stroke" Value="{StaticResource NigthBlueBrush}"/>
    <Setter Property="StrokeThickness" Value="2"/>
</Style>

Any idea how to make it work ?

Regards
serge

Version
4
  • You must to post comments
0
0

Usually you need to set the Style on the series, like this

 <s:FastLineRenderableSeries   Style="{StaticResource SingleStrokeStyle}"/>

Best regards,
Andrew

  • 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