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 advanceAchim
Hello,
does this problem exist furthermore or is there anything i can do to remove the border?
best regards mo
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.