Pre loader

Tooltip Template MVVM

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
0
0

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?

Version
5.2.2.11833
  • You must to post comments
Best Answer
1
1

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

  • Chris Kirkman
    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.
  • Andrew Burnett-Thompson
    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 to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies