ColorLine bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

ColorLine bug

Post by neurosoft » Tue Jul 12, 2011 9:37 am

Hello!

We found a bug with ColorLine in WPF TChart (version 4.1.2011.6283). Code file is attached. Run it and you will see ColorLine on First tab. Then click on Second tab and the return to First tab: ColorLine disappeared!
Attachments
WpfApplication1.zip
(8.86 KiB) Downloaded 444 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ColorLine bug

Post by Sandra » Tue Jul 12, 2011 4:18 pm

Hello neurosoft,

I have made something changes in your code and seems that now works as you expected:
WpfApplication1.zip
(9.78 KiB) Downloaded 445 times
The modification I have made in your code are:

First, I have removed your tChart added to running time, after I have added the tchart in Xaml code as do in next lines:

Code: Select all

  <AdornerDecorator>
                        <my:TChart Name="tChart">
                        </my:TChart>
 </AdornerDecorator>
In previous lines of code are using AdornerDecoder tab, so ColorLine is an Adorner and need the AdornerDecorator if you want it works fine. Please, can you confirm us if my modification works as you want?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

neurosoft
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

Re: ColorLine bug

Post by neurosoft » Wed Jul 13, 2011 7:24 am

Hello, Sandra!

With AdornerDecorator it really works. But why? Why all other functions of TChart can work properly without AdornerDecorator but ColorLine can't? Is it necessary to add AdornerDecorator to each TChart in my program? Is it some recommendations about it in your documentation?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ColorLine bug

Post by Sandra » Wed Jul 13, 2011 9:05 am

Hello neurosoft,
But why? Why all other functions of TChart can work properly without AdornerDecorator but ColorLine can't? Is it necessary to add AdornerDecorator to each TChart in my program?
The reason is that that ColorLine and a number of other tools that can be dragged are Adorners. The reason they are adorners is that this is the quickest way to get these tools to paint in WPF when they are dragged. Because they are Adorners, they need the AdornerDecorator. If these tools were not Adorners, they would be very much slower on dragging. On the other hand, not all functions of TChart are Adorners for this it doesn't need AdornerDecorator to work properly.
Is it some recommendations about it in your documentation?
At the moment it is not a recommendation in our documentation but I have added it in wish-list to be considered its inclusion in next maintenance releases of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply