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

Removing Drop Down Arrow in PanelBar

7 Answers 401 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Usman
Top achievements
Rank 1
Usman asked on 07 May 2012, 01:53 PM
how do i remove the drop down arrow from radPanelBar as i required it , kindly resolve my problem

7 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 10 May 2012, 06:44 AM
Hi Usman,

 You can find attached an edited copy of the default RadPanelBar's ItemContainerStyle. Please let us know if this is what you need.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Usman
Top achievements
Rank 1
answered on 23 Jun 2012, 10:42 AM
hi there,
            how do i change the color of radPanelBar drop down arrow to white as i required
0
Petar Mladenov
Telerik team
answered on 27 Jun 2012, 07:55 AM
Hi,

 The type of the "arrow" is Path, so zou can take advantage of its Stroke property:

<Path x:Name="arrow" Visibility="Visible" Grid.Column="5" Data="M1,1.5L4.5,5 8,1.5"
                                         HorizontalAlignment="Right" Margin="7,0" Opacity="1" RenderTransformOrigin="0.5,0.5"
                                          Stretch="None" Stroke="DeepSkyBlue" StrokeThickness="2" VerticalAlignment="Center">
                                            <Path.RenderTransform>
                                                <RotateTransform Angle="0"/>
                                            </Path.RenderTransform>
                                        </Path>
PATH MSDN

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Usman
Top achievements
Rank 1
answered on 27 Jun 2012, 01:12 PM
Hi peter ,

    Thanks it works But tel me one more thing how can i change it programmatically ( Kindly write in C# )
thanks.
0
Petar Mladenov
Telerik team
answered on 02 Jul 2012, 07:22 AM
Hello Usman,

 Changing this is code behind will be far away from elegant in the terms of WPF and Silverlight. However, you can inherit the RadPanelBar, override it OnApplyTemplate method and find the "arrow" with:

var arrow = this.GetTemplateChild("arrow") as Path;
If the arrow is not null then  change its stroke. However, we highly encourage you to use the XAML approach.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vicki
Top achievements
Rank 1
answered on 30 Oct 2012, 03:14 PM
May I ask which version of the Visual Studio for the sample zip file? I can't open it from Visual Studio 2010.  Thanks!
0
Petar Mladenov
Telerik team
answered on 02 Nov 2012, 11:31 AM
Hi Vicky,

 Both of the projects in this thread are WPF 4.0 solutions created in VS 2010.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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