Style border of DropDownButton popup

5 posts, 0 answers
  1. Hans
    Hans avatar
    13 posts
    Member since:
    Feb 2013

    Posted 16 Jan 2015 Link to this post

    What's the easiest way to style the border of the WPF DropDownButton popup?
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 20 Jan 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hans
    Hans avatar
    13 posts
    Member since:
    Feb 2013

    Posted 21 Jan 2015 in reply to Sia Link to this post

    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
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 22 Jan 2015 Link to this post

    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.

     
  6. Hans
    Hans avatar
    13 posts
    Member since:
    Feb 2013

    Posted 23 Jan 2015 in reply to Sia Link to this post

    Hi Sia,

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

    Have a good weekend.
Back to Top
UI for WPF is Visual Studio 2017 Ready