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
140
Remove any Borders from a Infragistics.Win.UltraWinTabControl.UltraTabControl
posted

Hi there,

I just want to have a flat TabControl with no borders. I used a DrawFilter to prevent drawing of the border but the content inside the tabs is still one pixel away from the border of the control.

public bool DrawElement(DrawPhase drawPhase, ref UIElementDrawParams drawParams) { if (drawPhase == DrawPhase.BeforeDrawBorders) { return true; } return false; } public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams) { if (drawParams.Element is TabPageAreaUIElement) { return DrawPhase.BeforeDrawBorders; } return Infragistics.Win.DrawPhase.None; }

When I try to set the BorderStyle of the TabPageAreaUIElement i get a NotsupportedException.

Can anyone help me out?

Thanks in advance
Achim