how to change background color of RadDropdown button Drowdown popup?

2 posts, 1 answers
  1. Hyoung woo Lee
    Hyoung woo Lee avatar
    8 posts
    Member since:
    Dec 2009

    Posted 14 Oct 2010 Link to this post


    I'd like to change background color of popup when end-user clicks RadDropDownButton ? What is the best way to bind with staticResource?

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2883 posts

    Posted 19 Oct 2010 Link to this post

    Hello Hyoung woo Lee,

    A possible way to do this is to use Grid or StackPanel in the RadDropDownButton.DropDownContent and to set its Background like so:  

    <telerik:RadDropDownButton  Content="Drop Down Button" VerticalAlignment="Center" HorizontalAlignment="Center" Width="125">
             <StackPanel Width="125" Background="Aqua">
                 <TextBlock Text="AAA"/>
                 <TextBlock Text="BBBB"/>
                 <TextBlock Text="CCCCC"/>
                 <TextBlock Text="DDDDDD"/>
                 <TextBlock Text="EEEEEEE"/>

    Another approach to this issue is editing the style of the RadDropDownButton. You can change the ControlBackground SolidColorBrush that is used in the DropDownPopupBorder. I`ve attached a sample project illustrating such scenario.

    Kind regards,
    Petar Mladenov
    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. DevCraft banner
Back to Top