Hi,
I want to use a CursorModifier
that snaps to series, but not all series. I can see the BaseRenderableSeriesViewModel
has, for example, IncludeTooltipModifier
, but there is no IncludeCursorModifier
property so I haven’t been able to get it to work out of the box.
Is this a missing feature?
https://www.scichart.com/documentation/win/current/webframe.html#CursorModifier.html
https://www.scichart.com/documentation/win/current/webframe.html#TooltipModifier.html
Are there any work arounds? I was thinking of adding metadata to a series, but there is no metadata for the entire series, just a metadata for the point markers.
I also tried to create a class that inherits from, for example, LineRenderableSeriesViewModel
, that has an IncludeCursorModifier
, or similarly named property. The issue I had with that is that when I create my own inherited version of CursorModifer
I only have access to the ParentSurface?.RenderableSeries
which is not the ViewModel
version of the series, and thus that information seems to be lost – I can’t cast a member of RenderableSeries
to my custom MyLineRenderableSeriesViewModel
, thus I can’t inspect whether it should be included in the cursor modifier.
I appreciate the help.
Matt
- Matthew Kist asked 3 years ago
- You must login to post comments
Hi Matthew,
Thanks for your inquiry.
You can set the CursorModifier.IncludeSeries attached property to False on the RenderableSeries. Please take a look:
<s:FastLineRenderableSeries Stroke="#1964FF" s:CursorModifier.IncludeSeries="False"/>
You can find this property described in the “Excluding a Single Series from the RolloverModifier” section of the following documentation:
https://www.scichart.com/documentation/win/current/webframe.html#RolloverModifier.html
We will also consider adding this description to our CursorModifier documentation page.
- Oleksandr Shvets answered 3 years ago
-
Hi Oleksandr, unfortunately that doesn’t really help me because I’m using MVVM so I’m using LineRenderableSeriesViewModel. As previously mentioned, what I’m missing is: LineRenderableSeriesViewModel.IncludeCursorModifier https://www.scichart.com/documentation/win/current/webframe.html#SciChart.Charting~SciChart.Charting.Model.ChartSeries.LineRenderableSeriesViewModel_properties.html
-
Oleksandr / anyone else. Are there any other suggestions for this?
- You must login to post comments
Please login first to submit.