Hi there,
i want to hide the Bottom Border of an UltraTextEditor to "merge" it with an other control on my ui...
to get this resolved i tried the Sample to hide/show specific Border Sides of Ultra Win Control's with an DrawFilter from the Knowledgebase but it doesnt work at all :/
attached you can find my demo project.
does anyone have an idea why it doesnt work?
tanks and sincerely
stefan
The control element does not draw the borders, the editor does. Change the 'is' condition in GetPhasesToFilter like so:
public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams){ //if (drawParams.Element is ControlUIElementBase) if (drawParams.Element is EditorWithTextUIElement) { return DrawPhase.BeforeDrawBorders; }
return Infragistics.Win.DrawPhase.None;}
i used the code like it was described in your knowledgebase to draw the borders...
HOWTO:How can I control which sides of the control border are drawn for an UltraWin Control?
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4003
Thanks for your quick response, i will have a try tomorrow.
Also, you must supress theming; you can do this by setting the control's UseOsTheming property to False.