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

How can I make VisualStates the same for my Header and Item

1 Answer 20 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 01 Jul 2011, 07:21 PM
1. Click on the Header
- Its state becomes 'Selected'
- Content of RadPanelBarItem becomes Visible
2. Click on the opened Item 
- Header's state becomes 'Normal'
- State of the content of opened item becomes 'Selected'

How can I save the state 'Selected' for the header when we click on the content of the Item?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 06 Jul 2011, 05:21 PM
Hello Alex,

You can have one additional style targeting RadPanelBarItem that includes the color changes that you need. The next step is to bind this Style of RadPanelBarItem to the IsExpanded property of the item via Converter. The converter will switch the Style depending of the boolean value of IsExpanded. Let us know if this could fit in your scenario.

All the best,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
PanelBar
Asked by
Alex
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or