This is a migrated thread and some comments may be shown as answers.

How to Get the Underlying TreeView Item on Mouseover

3 Answers 173 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
thomas kuang
Top achievements
Rank 1
thomas kuang asked on 27 Sep 2010, 09:38 AM

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 29 Sep 2010, 04:08 PM
Hello Thomas,

You can use WPF's ToolTip class. The scenarios you can use the tooltip are many, so I've attached a sample project demonstrating one of the possible usages. Have a look at it and let me know if you need further assistance regarding this topic.

Sincerely yours,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
thomas kuang
Top achievements
Rank 1
answered on 30 Sep 2010, 02:37 AM
thanks Kiril Stanoev ,
 but i have problem.you should look the attach files.you will understand.The tip information location not like tooltip tip information location. and the tip information will show when the treeview item header not all display,just display part.Do you understand? I'm sorry! my english is bad.I'm a  Chinese.


0
Tina Stancheva
Telerik team
answered on 05 Oct 2010, 03:28 PM
Hi thomas kuang,

Thank you for the clarification. In order to display the tooltip only when the RadTreeViewItem is cropped you can implement the following:
if (parentTreeViewItem.DesiredSize.Width == parentTreeViewItem.ActualWidth)
{
    parentTreeViewItem.ToolTip = ((parentTreeViewItem.Header as StackPanel).Children[1] as TextBlock).Text;
}

We modified the project to implement this approach. Take a look at it and let me know if it works for you.

Sincerely yours,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
thomas kuang
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
thomas kuang
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or