PanelBarItem HeaderStyle Trigger

3 posts, 0 answers
  1. Jean-Francois
    Jean-Francois avatar
    4 posts
    Member since:
    Jul 2010

    Posted 16 Jul 2010 Link to this post

    Hi, I'm using Xaml to design my PanelBar. I want to set defined properties to my PanelBarItems when they are expanded and when they are selected. I found some code on an other thread but it doesn't seem to be compatible with the PanelBar. Here is the code:
    <Style TargetType="{x:Type telerik:RadPanelBarItem}">
                    <Setter Property="HeaderTemplate">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type telerik:RadPanelBarItem}">
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsSelected" Value="True">
                                        <Setter Property="FontSize" Value="25" />
                                    </Trigger>
                                    <Trigger Property="IsExpanded" Value="True">
                                        <Setter Property="FontWeight" Value="Italic" />
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

    Can you tell me how to set the HeaderTemplate and his trigger?
    I'm using WPF controls Q2 2010
    Thanks
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 20 Jul 2010 Link to this post

    Hello Jean-Francois,

    You can use the Expanded event in order to accomplish this.

    Regards,
    Valentin.Stoychev
    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
  3. Jean-Francois
    Jean-Francois avatar
    4 posts
    Member since:
    Jul 2010

    Posted 21 Jul 2010 Link to this post

    Did it with the event but I was hoping to find a way to achieve this in WPF.  Works the same anyways !

    Thanks
Back to Top