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
1070
Hide Bottom Border of UltraTextEditor
posted

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

BorderSideDemo.zip
  • 69832
    Offline posted

    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;
    }