Decimal Seconds

Topics: fixed
Sep 1, 2010 at 10:00 PM

Is there no way to set the initial delay to .5 seconds? 


Sep 2, 2010 at 7:06 AM

Well, technically you can set it, but it takes a minimum of one second it seems, because the internal ToolTipService is having a default timespan of a second.

Something that could be optimized here indeed.

I hope to find some time in the near future to investigate this.

You’re welcome of course to submit a patch if you found it yourself J

Thanks for informing me!

Best regards,


Sep 9, 2010 at 9:01 PM

Fairly easy.

In ToolTipTimer add 

private int interval = 50; //milliseconds

Then in the constructor change the Interval initialization:

Interval = new TimeSpan(0, 0, 0, 0, interval);

Then the OnTick handler looks like this:

            CurrentTick += interval;
            if (CurrentTick >= MaximumTicks.TotalMilliseconds + InitialDelay.TotalMilliseconds)

And finally the ToolTipService OnTimerTickHandler needs this change to the beginning:

            if (CurrentToolTip.IsOpen) return;
            if (CurrentToolTip.InitialDelay.TimeSpan.TotalMilliseconds <= ((ToolTipTimer)sender).CurrentTick)



Sep 17, 2010 at 11:51 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.