Removing Drop Down Arrow in PanelBar

8 posts, 0 answers
  1. Usman
    Usman avatar
    12 posts
    Member since:
    Mar 2012

    Posted 07 May 2012 Link to this post

    how do i remove the drop down arrow from radPanelBar as i required it , kindly resolve my problem
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 10 May 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Usman
    Usman avatar
    12 posts
    Member since:
    Mar 2012

    Posted 23 Jun 2012 Link to this post

    hi there,
                how do i change the color of radPanelBar drop down arrow to white as i required
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Jun 2012 Link to this post

    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 >>

  6. Usman
    Usman avatar
    12 posts
    Member since:
    Mar 2012

    Posted 27 Jun 2012 Link to this post

    Hi peter ,

        Thanks it works But tel me one more thing how can i change it programmatically ( Kindly write in C# )
    thanks.
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 02 Jul 2012 Link to this post

    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 >>

  8. Vicki
    Vicki avatar
    3 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    May I ask which version of the Visual Studio for the sample zip file? I can't open it from Visual Studio 2010.  Thanks!
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 02 Nov 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready