vbnc141
vbnc141

Reputation: 11

Show ToolTip of a truncated WPF ListBox Item

Been searching all over but could not find the answer I am looking for; perhaps I'm not using the correct search term.

Anyways, my question is whether there is a property on the WPF ListBox control which I can set that will automatically display the full text of a truncated list item into a ToolTip?

For example, with some WinForm list-container controls, the ToolTip only appears when the mouse is hovered over a list item that is truncated.

Upvotes: 1

Views: 1506

Answers (1)

Andrew Jackson
Andrew Jackson

Reputation: 774

This might be overkill but here is an article which shows how to determine if text in your control is actually trimmed so that you can show a ToolTip:

http://tranxcoder.wordpress.com/2008/10/12/customizing-lookful-wpf-controls-take-2/

Referenced from this question:

How can I determine if my TextBlock text is being trimmed?

Upvotes: 1

Related Questions