SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Answered
0
0

We implemented a custom TooltipModifier. We want to fade out the tooltip after a defined timespan if the mouse doesn’t move. Is there something predefined or how to implement this? It should be something like ToolTipService.ShowDuration from WPF.

  • You must to post comments
Best Answer
0
0

Hi Christian,

Thanks for your question. In our implementation of TooltipModifier, this behavior is implemented in code. We use a helper class which is basically a wrapper around DispatcherTimer. There is the HoverDelayProperty which stores the corresponding value.

So you could use this approach in your modifier. Add an additional property called ShowDuration and set up a timer when the tooltip is shown. In a timer’s callback just remove/hide a tooltip.

Hope this helps! Please let us know if you have any troubles with implementation of this behavior,

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.