Page 1 of 1

WPF - Draw Lines Clipping

Posted: Tue Nov 11, 2008 2:02 pm
by 9644809
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 ?

Re: WPF - Draw Lines Clipping

Posted: Tue Nov 11, 2008 3:48 pm
by Chris
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!