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

2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Jul 2011

    Posted 01 Jul 2011 Link to this post

    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?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top