WPF - Draw Lines Clipping

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
n8soft
Newbie
Newbie
Posts: 5
Joined: Thu Apr 12, 2007 12:00 am

WPF - Draw Lines Clipping

Post by n8soft » Tue Nov 11, 2008 2:02 pm

In the WPF demo:
1. Draw lines on the chart
2. Scroll and Pan around.

Bug - The drawn lines are not clipped correctly in the chart panel.

Question:
1. It seems the WPF version is still relatively new and not all there yet. Just running the demo, and trying different tools leads to exceptions etc. Are you accelerating the WPF patch cycle ?

2. Is the WPF chart a true WPF first class citizen or are you using GDI under the covers ? We are wondering to what extent we can use XAML features to style all elements of charts ?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: WPF - Draw Lines Clipping

Post by Christopher » Tue Nov 11, 2008 3:48 pm

n8soft,
n8soft wrote: Bug - The drawn lines are not clipped correctly in the chart panel.
Ok, we have been able to reproduce this one here and have added it to our defect tracker with reference TF02013561.
n8soft wrote: 1. It seems the WPF version is still relatively new and not all there yet. Just running the demo, and trying different tools leads to exceptions etc. Are you accelerating the WPF patch cycle ?
The WPF patch cycle is already at a high velocity :D. Do please tell us defects in the functionality that you need to use and we will do our best to fix the issues in the shortest time possible.
n8soft wrote: 2. Is the WPF chart a true WPF first class citizen or are you using GDI under the covers ?


No, we don't use GDI or GDI+. Try opening TeeChart.WPF.dll in redgate's .net reflector (http://www.red-gate.com/products/reflector/). You will see that it doesn't even reference the System.Drawing.dll, in which GDI+'s Graphics class lives.

If, again using the reflector above, you navigate to Steema.TeeChart.WPF.TChart.OnRender(...) you will see that we use an instance of System.Windows.Media.DrawingContext to do all the drawing.
n8soft wrote: We are wondering to what extent we can use XAML features to style all elements of charts ?


AFAIK, XAML styling features can only be applied to objects created at designtime. As all the objects in TChart depend on the data added to them, very little designtime styling can be done. We do have themes, however, which you will have seen the in the WPFDemo. If you have any other requests for "native" styling which can be applied to the DrawingContext paradigm of working, then please let us know!
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply