Pre loader

Tag: StrokeThickness

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 votes
10k views

In my SciChart InteractionToolbar, I have a slider that changes the stroke thickness of the selected series.

<TextBlock Text="Line Thickness:"/>
<wpfTool:IntegerUpDown Foreground="White" 
x:Name="Thickness" 
Minimum="1" 
Maximum="10" 
Value="{Binding SelectedSpectrum.StrokeThickness, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ValueChanged="Thickness_ValueChanged">
</wpfTool:IntegerUpDown>

This works correctly until a new series is selected. When a new series is selected, the previously selected series thickness returns to its default of “1”. Is there a way I can persist my StrokeThickness value even when the series is no longer selected?

    private void Thickness_ValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
    {
        if ((sciChartSurface.RenderableSeries != null) && (e.NewValue != null))
        {
            var selectedSeries = sciChartSurface.RenderableSeries.Where(s => s.IsSelected == true).FirstOrDefault();
            if (selectedSeries != null)
            {
                selectedSeries.StrokeThickness = (int)e.NewValue;
            }
        }
    }
0 votes
14k views

Hello!

I’ve created a Scichart project. I have a problem using antialiasing property with FastLineRenderableSeries: it works perfect when strokethickness property is set to 1, but when I set strokethickness to value that is greater than 1, changing antialiasing property doesn’t affect renderableseries.

How can I fix this?

Thanks in advance.

Example project source: https://drive.google.com/open?id=0B1VdjR7Lh43qMGNnaVJBYmVUV0E

0 votes
10k views

Hello,

I have a problem: I’m creating FastLineRenderableSeries with big StrokeThickness value. The bigger this value is the slower my program works.

Is there any way to speed it up in this situation?

P.S. I’ve attached project below.

Thanks in advance.

  • Egor asked 8 years ago
  • last active 8 years ago
Showing 3 results