I’ve read the TooltipModifier article but I don’t believe the method discussed in this article will work for me. The renderable series of my chart is set in within my ViewModel; therefore the described method of setting the TooltipModifier using the following syntax will not work for me since my series are not defined in the XAML.
<s:SomeSeriesType s:TooltipModifier.TooltipTemplate="{StaticResource XyTooltipTemplate}" />
Instead I am using the following.
<s:SciChartSurface RenderableSeries="{s:SeriesBinding SeriesInMyModel}" />
What can I do to overcome this problem?
- Chris Kirkman asked 5 years ago
- You must login to post comments
Hi Chris,
You are right, but the good news is that we have a documentation article on exactly this topic: Worked Example – Bind Tooltip Templates or Attached Properties in MVVM.
Please let me know if that helps!
Best regards
Andrew
- Andrew Burnett-Thompson answered 5 years ago
-
that did it! thanks so much. In fact it opened up my eyes to a lot more customization that I’ll be able to apply to my different series. One thing I was facing recently was to not show tooltips for some series and show them for others, and now I am able to do so.
-
Glad to be of help! You should check out the attached property TooltipModifier.IncludeSeries. Set this to false on a RenderableSeries to exclude it from the TooltipModifier. Other modifiers such as CursorModifier, VerticalSliceModifier, RolloverModifier also have IncludeSeries. Modifiers like YAxisDragModifier has IncludeAxis attached property too!
- You must login to post comments
Please login first to submit.