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
930
Make one side borederless in an UltraGroupBox
posted

Hi,

How do I go about making the bottom border of a groupbox transparent? I've tried using a DrawFlter but I can't seem to find the right element. Should I be using GroupBoxContentAreaBorderUIElement?

Thanks

Ryan

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Ryan,

    You might find the UIElementViewer to be useful when dealing with DrawFilters or CreationFilters.  With that being said, you would need to draw the borders yourself using a DrawFilter on the GroupBoxContentAreaBorderUIElement, as you gathered.  Which aspect of this is giving you trouble?  You should be able to return DrawPhase.BeforeDrawBorders from the GetPhasesToFilter method and draw the borders within the DrawElement method, though you might need to decrease the width and height of the rect given to you by the element so that the borders are visible.

    -Matt

Children