Try to add a property to the CustomRenderableSeriesViewModel
class:
public class CustomRenderableSeriesViewModel : BaseRenderableSeriesViewModel
{
public override Type ViewType => typeof(CustomRenderableSeries);
private bool _isSplineEnabled;
public bool IsSplineEnabled
{
get { return _isSplineEnabled; }
set { SetValue(ref _isSplineEnabled, value, "IsSplineEnabled"); }
}
}
...and bind it to the property of the CustomRenderableSeries
in the style:
<Style TargetType="local:SplineLineRenderableSeries" x:Key="splineSeriesStyle"
BasedOn="{StaticResource MvvmDefaultRenderableSeriesStyle}">
<Setter Property="IsSplineEnabled" Value="{Binding IsSplineEnabled}"/>
</Style>
It's unclear whether this actually works - I haven't tested it - given the following open thread at SciChart.com: https://www.scichart.com/questions/question/setting-value-in-renderableseriesviewmodel
If it fails I recommend you to post a new comment there and wait for the official support team to come back to you. After all they claim to "pride themselves on excellence in technical support and want you to get a fast resolution to your request" so it shouldn't take long before you get an answer from Try to add a property to the CustomRenderableSeriesViewModel class:
public class CustomRenderableSeriesViewModel : BaseRenderableSeriesViewModel
{
public override Type ViewType => typeof(CustomRenderableSeries);
private bool _isSplineEnabled;
public bool IsSplineEnabled
{
get { return _isSplineEnabled; }
set { SetValue(ref _isSplineEnabled, value, "IsSplineEnabled"); }
}
}
...and bind it to the property of the CustomRenderableSeries in the style:
<Style TargetType="local:SplineLineRenderableSeries" x:Key="splineSeriesStyle"
BasedOn="{StaticResource MvvmDefaultRenderableSeriesStyle}">
<Setter Property="IsSplineEnabled" Value="{Binding IsSplineEnabled}"/>
</Style>
It's unclear if this actually works given the following open thread at SciChart.com: https://www.scichart.com/questions/question/setting-value-in-renderableseriesviewmodel
If it fails I recommend you to post a new comment there and wait for the official support team to come back to you. SciChart claims to "pride themselves on excellence in technical support and want you to get a fast resolution to your request" so it shouldn't take long before you get an answer from @Dr. ABT or a member of his team.