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.
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; } }
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; } }
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.
I've updated the attached example (which now works if anyone was after the source code).