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
Thanks Matt, that viewer utility is excellent. My problem was that my draw filter was only working for the left and right borders. I'll try decreasing the height and give that a go. Thanks for your help.
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