Tab tooltip

3 posts, 0 answers
  1. bhavin patel
    bhavin patel avatar
    24 posts
    Member since:
    Jun 2005

    Posted 22 Oct 2009 Link to this post

    I am dynamically generating Tab like:
      RadTabItem itemToAdd = new RadTabItem()
                        {
                            Header = pnl,
                           ToolTip="RevKey : " + _revKey,
                            Content = newAudit,
                            Padding = new Thickness(10, 5, 10, 5),
                         };

    here newaudit is some usercontrol which have agains tabs inside.
    So,problem is that I am assigning tooltip="revKey=......" to Top control(itemToAdd ) tab and it show the tooltip to newAudit control tab's also as well as  for newaudit tab content (textbox,combox).

  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 23 Oct 2009 Link to this post

    Hello Bhavin,

    Yes, this is kind of unexpected but happens because the ToolTip is set to the TabItem and the content of the TabItem is still part of it.

    To get around that, you can set the tooltip to the header of the TabItem. If your header (pnl) is a visual item, you can attach the tooltip directly. Otherwise you may want to assign a HeaderTemplate which will contain the tooltip. In this template you can bind the tooltip to a property in the header object as well.

    Does this work in your case?

    Greetings,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. bhavin patel
    bhavin patel avatar
    24 posts
    Member since:
    Jun 2005

    Posted 23 Oct 2009 Link to this post

    Thanks a lot.
    it worked..i assign tooltip to pnl..instead tabitem
Back to Top