-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
WPF - Allow ToolTip timer configuration #4389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Related discussion at #4048 (comment) There's still a few other cases that should be tested. |
❌ Build CefSharp 110.0.220-CI4686 failed (commit 9cf549765a by @amaitland) |
- Can set initial show delay in xaml via existing ToolTipService e.g. ToolTipService.InitialShowDelay="100" - If InitialShowDelay = 0 then no timer is used and ToolTip is immediately shown - Previous delay was 500ms, new delay is the .Net default (typically 1000ms) Related to issue #4048
e1ed5ee
to
e34ce46
Compare
WalkthroughThis change refactors the tooltip handling logic in the ChromiumWebBrowser WPF control. It restructures the tooltip text change method to streamline early exits and timer management, and updates tooltip timer initialization to respect the configured initial show delay, only creating the timer if the delay is greater than zero. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
1 similar comment
✅ Actions performedReview triggered.
|
✅ Build CefSharp 138.0.330-CI5331 completed (commit d4c5b007a7 by @amaitland) |
Related to issue #4048
Summary:
Allow programmatic configuration of ToolTip timer delay.
Changes:
OnLoaded
, setting the delay dynamically is not currently supported. Simplest option is to set the delay inxaml
How Has This Been Tested?
Types of changes
Checklist:
Summary by CodeRabbit