Hi Andrey,
My suggestion will work only in a databinding scenario. This means that it will only work if you bind the
RadPanelBar.ItemsSource to a collection of data items (
read more). I attached a sample project that demonstrates this approach so that you can examine it and decide if it will work for you.
However, if you don't want to change the direction you're using in your application, then you can set up a ToolTip in code like so:
Dim MyHeader As New RadPanelBarItem() With {.Header = "Header 1"}
ToolTipService.SetToolTip(MyHeader, "This is MyHeader")
Dim item1 As New TextBlock() With {.Text = "Bla-Bla-Bla"}
ToolTipService.SetToolTip(item1, "This is Item 1")
Dim item2 As New TextBlock() With {.Text = "Bla-Bla-Bla"}
ToolTipService.SetToolTip(item2, "This is Item 2")
Dim item3 As New TextBlock() With {.Text = "Bla-Bla-Bla"}
ToolTipService.SetToolTip(item3, "This is Item 3")
Dim item4 As New TextBlock() With {.Text = "Bla-Bla-Bla"}
ToolTipService.SetToolTip(item4, "This is Item 4")
Dim item5 As New TextBlock() With {.Text = "Bla-Bla-Bla"}
ToolTipService.SetToolTip(item5, "This is Item 5")
MyHeader.Items.Add(item1)
MyHeader.Items.Add(item2)
MyHeader.Items.Add(item3)
MyHeader.Items.Add(item4)
MyHeader.Items.Add(item5)
RadPanelBar.Items.Add(MyHeader)
Both approaches will add tool tips to your items so you can choose the one that better fits your development requirements.
Kind regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>