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

Header Icon on PanelBarItem

1 Answer 87 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 29 Apr 2011, 01:46 PM
Hi,

We are trying to get an icon next to the header text on a RadPanelBarItem. We tried the two properties of the RadPanelBarItem:
- DefaultImageSrc
- ExpandedImageSrc

But no icon is showing up in the panelbar item. Is the approach shown below not working?
<telerik:RadPanelBarItem
    x:Class="UI.PlanNavigationView"
    Header="{Binding Title}"
    IsSelected="{Binding IsSelected}"
    DefaultImageSrc="/Prodigy.UI.Infrastructure.Silverlight;component/Images/planboard_24.png"
    ExpandedImageSrc="/Prodigy.UI.Infrastructure.Silverlight;/Images/planboard_24.png">
As an alternative we could add a stackpanel to the header of the RadPanelBarItem, but we would prefer to use default properties of the RadPanelBarItem.
Can anyone provide help on this topic?
Kind Regards,
Vincent

1 Answer, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 04 May 2011, 02:39 PM
Hi Vincent,

We posted an answer to the support ticket you sent, however I will post it here as well should anyone else encounter the same issues:

The DefaultImageSrc/ExpandedImageSrc properties are inherited from the RadTreeView control and their implementation doesn't work for the RadPanelBarItems. Since we realize that being able to access the, but not use them, is confusing, we logged it as a bug in our PITS.
 
We also added a feature request to add a new property that allows displaying images in the RadPanelBarItem header. You can vote for it here thus increasing its priority.

All the best,
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
PanelBar
Asked by
Vincent
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or