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.
- Christian Perner asked 9 years ago
- You must login to post comments
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
- Guest answered 9 years ago
- You must login to post comments
Please login first to submit.