SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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;
}
}
}
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
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.