In a Windows Store Application I have the following TextBlock:
<TextBlock Text="Seriously long text for the purpose of showing tooltip"
TextTrimming="CharacterEllipsis" />
How do I automatically show a tooltip when the text is too long to display without an ellipsis?
Usually you tap it and open a view where it shows up in full either because it has more space/uses smaller font or where the text wraps/scrolls.
Here's my solution, based on this and this.
First, create an attached property to enable auto tooltip:
Then use it in XAML like so:
The tooltip will only be shown when the textblock is trimmed.