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

RadPanelBarItem disabled apperarance

1 Answer 41 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jason Moore
Top achievements
Rank 1
Jason Moore asked on 02 Dec 2014, 11:46 PM
Hi,
I have the following XAML 
 <RadPanelBar>
     <RadPanelBar.Items>
            <RadPanelBarItem
                  IsEnabled="{Binding IsEnabled}">

....................
where IsEnabled is a property on the View Model.

As can be seen from the attached image there is a slight darker grey coloured box that fills the items when IsEnabled= false
I just want the text to change when items are disabled with no extra change in background fill colour.

Can I be shown(perhaps sample control template) as to how to do this

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 04 Dec 2014, 11:17 AM
Hi Jason,

As far as I understand you need to customize one of the states of the RadPanelBarItem. This can be done in fairly easy way by following the steps described in this article. You should open the Telerik.Windows.Controls.Navigation.xaml dictionary and you should be looking for the style with x:Key attribute set to "RadPanelbarItemBaseStyle". Furthermore you should customize its Template or its ChildItemsTemplate depending on your needs.

I hope this information will get you started.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PanelBar
Asked by
Jason Moore
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or