Automatic tooltip for TextBlock's that get clipped
See original GitHub issueWe should consider applying a tooltip where possible on TextBlock’s that are clipped either due to maxLines
or wrap: false
Seen here a tooltip on the “Too long Agenda Event T…” would improve the user experience.
Doesn’t require schema changes, if we’re agreed on this desired behavior, open question is simply how feasible this is on all renderers.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Auto ToolTip on TextBlock trimming - wpf
Sometimes when the last 2 characters are trimmed the ToolTip is not shown. Any suggestions? wpf · tooltip · textblock · trim ·...
Read more >Automatically Showing ToolTips on a Trimmed TextBlock ...
How to automatically show ToolTips on a trimmed TextBlock (Silverlight + ... Gets the value of the AutoTooltipProperty dependency property ...
Read more >Automatically Showing ToolTips on a Trimmed TextBlock ...
The most interesting method is ComputeAutoTooltip which determines whether a tooltip is required. This simply looks at the ActualWidth of the ...
Read more >TextBlock texttriming text display tooltip issue
Perhaps, you will find them helpful: Automatically Showing Tooltips On A Trimmed Textblock (Silverlight + Wpf) · Show WPF Tooltip if needed
Read more >ToolTip Class (Windows.UI.Xaml.Controls) - UWP
Here's a ToolTip for a Button. Tool tip control. For design guidelines, see Guidelines for tooltips. Usage. A ToolTip must be assigned to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think ToolTip has another function that it can be used to tell end-users an element can be clicked when users hover over the element. I noticed there is not a function like hovering over element to remind users to know what the element is used for. So if there are too many “Clicked elements”, tooltip or hovering function is necessary. Otherwise users maybe feel confused.
It’s a good idea, but the problem is that the truncation is done by the layout engine (the browser for HTML), and as far as I know there is no other way to determine whether the truncation did happened than to:
This is a very expensive process that would significantly impact performance, especially on Edge where getBoundingClientRect is significantly slower than in other browsers.