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

Parents
No Data
Reply
  • 44743
    Suggested Answer
    posted

    The only way to get rid of the border is to set the Style of the UltraTabControl to Wizard, but this will remove the tab items. There is no other way to change the border style.

Children