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
875
UltraTimeLineView TextUIElements
posted

I've put together a sample solution showing the problem that I'm currently facing.

In the top left of the UltraTimeLineView i've cleared the elements out and added a TextUIElement, which I want to display some text in.

I can clearly see the TextUIElement is there, but the text doesn't show?

Thanks for any help.

Parents
  • 875
    Offline posted

    The solution was to return:

    public Infragistics.Win.DrawPhase GetPhasesToFilter(ref Infragistics.Win.UIElementDrawParams drawParams)
    {
    if (drawParams.Element is Infragistics.Win.TextUIElement)
       {
        return Infragistics.Win.DrawPhase.BeforeDrawForeground;
       }
    }

    and then handle it here like so:
     
    public bool DrawElement(Infragistics.Win.DrawPhase drawPhase, ref Infragistics.Win.UIElementDrawParams drawParams)
    {
    if (drawPhase == Infragistics.Win.DrawPhase.BeforeDrawForeground)
       {
        drawParams.AppearanceData.ForeColor = Color.Black;
       }
    }
     
    Thanks for sorting this one for me Danko. Thought i'd post it up here in case anyone else had the same problem.
Reply Children
No Data