I need to set the style of the ellipse on my VerticalSliceModifier (and make it a custom color etc)
<s:VerticalSliceModifier ShowTooltipOn="Never" Foreground="White" Name="sliceModifier">
<s:VerticalSliceModifier.VerticalLines>
<s:VerticalLineAnnotation X1="{Binding Number}" Style="{StaticResource sliceStyle}" />
</s:VerticalSliceModifier.VerticalLines>
</s:VerticalSliceModifier>
However my series is created in code as a MountainRenderableSeriesViewModel and bound to the chart via SeriesBinding
<s:SciChartSurface
Grid.Row="1"
Background="Transparent"
BorderThickness="0"
RenderableSeries="{s:SeriesBinding Series}"
Annotations="{s:AnnotationsBinding Annotations}">
All the examples I’ve seen use the RolloverMarkerTemplate and define it under as a child node under BaseRenderableSeries or FastLineRenderableSeries, but I cannot find how to assign this to a series when it is defined in a ViewModel and assigned as above.
I’m new to SciChart and any help on this would be great.
Thanks
- Niamh Dunne asked 3 years ago
- You must login to post comments
Hi Niamh,
Check out this worked example on how to apply a style to a series when using MVVM.
You can use this method to apply a RolloverMarkerTemplate to a series when using SeriesBinding.
Let me know if this helps!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Please login first to submit.