Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
Ultradropdownbutton does not look like a button until mouse is hovered on it
posted

I added a dropdownbutton and attached it to a PopupMenuTool to show options on click. Everything is fine except that the button does not actually look like a button. If I hover my mouse then it shows as a button else its just flat like a label. Attached Image. I selected the Style as DropDownButtonOnly, ShowOutline=False, UseAppStyling = False.

  • 23930
    Offline posted

    Hello,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Suggested Answer
    Offline posted

    Hi,

    Thank you for posting in our forums.

    This button will display solid borders, only if the following conditions are met:

    - The button is a default button on the form (i.e. it is the AcceptButton or the CancelButton of the form).

    - ShowOutlines property is set to true

    - Themes are disabled (for example, UseOSThemes is set to false)

    Otherwise the button shows no borders.

    If you want to control the borders of the control, without fulfilling all the previous conditions, you could use the DrawFilter interface. In it simply return the BeforeDrawBorders phase of the DropDownButtonControlUIElement and then use the DrawBorders method of the drawParams. For more information about the DrawFilter interface, please follow this link:

    http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Win_Draw_Filter.html

    I have attached a sample which demonstrates this suggestion.

    Please let me know if you have any additional questions.

    WE_DropDownButtonBorder.zip