SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.
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
Please login first to submit.