7 Answers, 1 is accepted
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 >>
how do i change the color of radPanelBar drop down arrow to white as i required
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
>
Regards,
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks it works But tel me one more thing how can i change it programmatically ( Kindly write in C# )
thanks.
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;
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.