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;}
Also, you must supress theming; you can do this by setting the control's UseOsTheming property to False.
Thank you, it works... but when i disable OS Theming it looks really old and does not match the appearance of the application and specially not the appearance of the control i want to "merge" it with.
so how can i make the border looking like OS Themed?
Sorry but you can't. When the control is themed the border drawing is delegated to the operating system.