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

Style border of DropDownButton popup

4 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 2
Hans asked on 16 Jan 2015, 02:18 PM
What's the easiest way to style the border of the WPF DropDownButton popup?

4 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 20 Jan 2015, 04:27 PM
Hello Hans,

You need to set custom template to the RadDropDownButton, where the Popup with x:Name="DropDownPopup" needs to be changed. Please let me know which is the theme that you apply in your application and which is the theming mechanism that you use - StyleManager or implicit themes? What kind of modification do you need? And I will help you further with this.

Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Hans
Top achievements
Rank 2
answered on 21 Jan 2015, 01:46 PM
Hi Sia,

I'm using the Office2013 theme with implicit styles. The popup has a gray border which I'd like to change to another color.

Kind regards
Hans
0
Sia
Telerik team
answered on 22 Jan 2015, 01:09 PM
Hello Hans,

Please find attached a sample solution how to do this. In the custom style I only changed the value of the BorderBrush in the Popup from:
BorderBrush="{telerik:Office2013Resource ResourceKey=HighDarkBrush}"
to:
BorderBrush="Red"

You can remove some of the visual states also to simplify your style if you use only the default PopupPlacementState and DropDownButtonPosition.

Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Hans
Top achievements
Rank 2
answered on 23 Jan 2015, 08:47 PM
Hi Sia,

Got it. Thank you so much for your help! :-)

Have a good weekend.
Tags
General Discussions
Asked by
Hans
Top achievements
Rank 2
Answers by
Sia
Telerik team
Hans
Top achievements
Rank 2
Share this question
or