10808 : Creating a time item legend

Question

I want to create a form containing a legend for the time items i use in my chart. I create all my items (and there layouts) in a factory. So, if i change the layout in the factory to do changes to my chart, i want the changes to be automatically taken over in the legend (since the timeitems in the legend are also creteated by the same factory). Is something like that imaginable?

Answer

Yes. You can use the static class TimeItemDraw for this. It exposes the draw implementation of time items. You can send in your own Graphics object from the panel.