Page 1 of 1

WPF ScrollPager Not Working

Posted: Thu Oct 27, 2016 11:16 am
by 15677721
I am trying to add a scroll pager to a tchart like in the example code (but for WPF) and I get a very strange result

Before I add a scroll pager.
before.PNG
before.PNG (58.68 KiB) Viewed 14296 times
After
result.PNG
result.PNG (12.91 KiB) Viewed 14288 times

Code: Select all

Chart.Series.Clear();
Chart.Header.Text = "Plot";
Chart.Axes.Automatic = true;
Chart.Legend.TopLeftPos = 0;
Chart.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
Chart.Axes.Bottom.Labels.LabelsAsLocalTime = true;
Chart.Legend.LegendStyle = Steema.TeeChart.WPF.LegendStyles.Series;

FastLine series = new FastLine();
Chart.Series.Add(series);
series.FillSampleValues(1000);
Chart.Tools.Add(_nearestPoint = new NearestPoint());
Chart.Tools.Add(_annotate = new Annotation());

_scrollPager = new ScrollPager();
_scrollPager.Series = series;

_nearestPoint.Series = series;
_nearestPoint.Brush.Color = _scrollPager.PointerHighlightColor;
_nearestPoint.DrawLine = false;
_nearestPoint.Size = 6;
_nearestPoint.Direction = NearestPointDirection.Horizontal;

_annotate.Position = AnnotationPositions.RightTop;
_annotate.Text = "YValue:";
_annotate.Shape.Shadow.Visible = false;
_annotate.Shape.Font.Color = Chart.Header.Font.Color;
_annotate.Shape.Color = _scrollPager.PointerHighlightColor;
_annotate.Shape.Pen.Visible = false;
_annotate.TextAlign = TextAlignment.Center;
Any ideas would be gratefully received!

Tom

Re: WPF ScrollPager Not Working

Posted: Thu Oct 27, 2016 2:49 pm
by 15677721
I have put a sample project with my issue here: https://www.dropbox.com/s/voghqgxfbo5hu ... t.zip?dl=0

Re: WPF ScrollPager Not Working

Posted: Tue Nov 01, 2016 10:26 am
by 15677721
bump

Re: WPF ScrollPager Not Working

Posted: Wed Nov 02, 2016 11:50 am
by Christopher
Hello,

many apologies for the tardiness of this reply. I have added this issue to our issue-tracker with ticket number id=1672. I will have a look at this in the near future to see if I can suggest a workaround for you.

Re: WPF ScrollPager Not Working

Posted: Mon Nov 14, 2016 9:53 am
by 15677721
Thanks. Any update on this?

Re: WPF ScrollPager Not Working

Posted: Mon Nov 14, 2016 11:56 am
by Christopher
t-chizzle wrote:Thanks. Any update on this?
Yes. I've fixed the problem, but was waiting for a colleague to complete a related issue on another platform before responding. Unfortunately the fix was made within a private method, meaning that the only workaround is to completely replace the ScrollPager tool with a new class at runtime. If you're happy with that, do please indicate your email address and license number and I can send the code to you.

Re: WPF ScrollPager Not Working

Posted: Thu Nov 24, 2016 11:30 am
by 15677721