How to Get the Underlying TreeView Item on Mouseover

4 posts, 0 answers
  1. thomas kuang
    thomas kuang avatar
    4 posts
    Member since:
    May 2010

    Posted 27 Sep 2010 Link to this post

    Please look the attach files.Thanks.
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 29 Sep 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. thomas kuang
    thomas kuang avatar
    4 posts
    Member since:
    May 2010

    Posted 29 Sep 2010 Link to this post

    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.


  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 05 Oct 2010 Link to this post

    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
Back to Top