prompt

In C #, how can I make a tooltip appear until the mouse leaves the tooltip area. No matter what delay I set, it remains displayed.

I tried to change the AutoPopDelay, InitialDelay, and ReshowDelay properties to 0, but the only way I can see is to set the delay to a very large value, which is not what I'm looking for.

+3
source share
3 answers

It's impossible. The native Windows controller has hard-coded behavior to make the tip disappear when it has been shown long enough. Cannot override this behavior.

A tooltip that is persistent is a label.

+5

JB, you can write an attached behavior (for example: similar to the .Net ToolTipService class), and then you have full control over when to show the hidden tip of the tool in focus. However, I think you can still get this with ToolTipService.ShowDuration and set it to int.Max (it will be like 20 days ...)

0
source

Source: https://habr.com/ru/post/1767932/


All Articles