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

PanelBarItem HeaderStyle Trigger

2 Answers 39 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jean-Francois
Top achievements
Rank 1
Jean-Francois asked on 16 Jul 2010, 07:17 PM
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 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 20 Jul 2010, 04:00 PM
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
0
Jean-Francois
Top achievements
Rank 1
answered on 21 Jul 2010, 03:01 PM
Did it with the event but I was hoping to find a way to achieve this in WPF.  Works the same anyways !

Thanks
Tags
PanelBar
Asked by
Jean-Francois
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Jean-Francois
Top achievements
Rank 1
Share this question
or