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

how to change background color of RadDropdown button Drowdown popup?

1 Answer 98 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Hyoung woo Lee
Top achievements
Rank 1
Hyoung woo Lee asked on 15 Oct 2010, 03:54 AM

Hi

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

Regards,

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 19 Oct 2010, 03:06 PM
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">
     <telerik:RadDropDownButton.DropDownContent>
         <StackPanel Width="125" Background="Aqua">
             <TextBlock Text="AAA"/>
             <TextBlock Text="BBBB"/>
             <TextBlock Text="CCCCC"/>
             <TextBlock Text="DDDDDD"/>
             <TextBlock Text="EEEEEEE"/>
         </StackPanel>
     </telerik:RadDropDownButton.DropDownContent>
 </telerik:RadDropDownButton>

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
Tags
Buttons
Asked by
Hyoung woo Lee
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or